Hello,
I am no expert, but there are many reasons for this problem. This may sound obvious, but when your computer tries to boot up, do you hear the CPU's cooling fan come on? Without adequate CPU cooling, the safety system will keep on shutting down the PC to prevent frying the CPU. It's a safety feature on all modern PC's. Or as previously mentioned, it could be a motherboard problem.