Computer turns on for 3 seconds than turns off. Keeps on turning on and off but won’t stay on

Poith

Prominent
May 4, 2017
4
0
510
Can someone please help me. My pc shutoff on me yesterday. When I went to go restart it, it would turn on and boot up my fans for 3 seconds than turn off. It kept doing this cycle and I don’t know what to do. This is what I have tried:
1)Taking pc apart/putting back together
2)Replace battery that’s in motherboard
3)Bought a new power supply, still didn’t work.

Any other suggestions?
 

Poith

Prominent
May 4, 2017
4
0
510


thanks