when i've seen this happen, it's usually either the motherboard is bad, or the power supply is bad. I think the CPU is fine because if the problem were the CPU, it wouldn't be shutting off after 2 seconds.
Try this: Take a flashlight and look at the top of all the capacitors you can see, are...