First things first, try restarting it in safe mode... Shut down your Mac and wait about 5 minutes. Then boot it up and at the same time hold the Shift key on your keyboard until the Apple logo shows up. If it does not, try this. Shut down your iMac and unplug it from its main power source. Then wait 5 minutes. After that, start up the iMac and instantly press and hold Command + Option + P + R all at the same time and keep holding it until you hear the start up sound 4 times and then release them. If this doesn't work... please reply to this message.