Easiest thing to check first would be the motherboard, check it for any bad capacitors that are bulging or busted open. If all looks good there, you need to try a new power supply with the system. Those 2 are most likely the cause of the issues unless you added some new hardware to the computer, then you'd need to check on that.