If an iMac will not power on, do a System Management Controller (SMC) reset:
Unplug the power cord.
Wait fifteen seconds.
Attach the power cord.
Wait five seconds, then press the power button to turn on the computer.