Computer Turns on for a sec then power's off

Sep 12, 2018
6
0
10
When I press the power button the Ez Debug Led light for CPU blinks and the fans move for like 1 sec and but never fully turns on. This is weird since I have been using it for a couple months perfectly fine. Also when I first built this computer it had the same problem, but it magically fixed.
Here are my specs:
Motherboard - MSI H310M Pro-VD
CPU - i5-8400
Graphic Card - gtx 1060 3gb
Power Supply - EVGA 500W 80 plus
Ram - Kingstone 1x8gb 2400Mhz
Any help will be greatly appreciated!
 


Alright I'll find a place and tell you how it works out!