Chosen Solution

can the off and on botton stop working

I’ve seen a defective power button on an iMac only once. Much more likely a power supply issue. Look on the bottom of the machine and tell us what you have so we can get you to the correct guides and how to read the diagnostic LEDs.