Likely a motherboard issue, or power supply issue. Check over the motherboard for bad capacitors and reseat the RAM. If they all look good, unplug the system from wall power and hold in the power button for about 10 seconds. Then reset the BIOS by removing the CMOS battery for 10 seconds. Plug it all back and see if that fixed things. If not you need to look into replacing the power supply and motherboard.