PC Cut's off, won't restart

yzdapriince

Prominent
Jan 31, 2018
3
0
510
Ii was in the middle of a League of Legends games just now and my pc did something very strange.. It just cut off on me.. When ii tried putting it back on, it didn't start.. Ii took out the power cord from the back and wait 5 mins before putting it back in and it came on
Nothing else happened while it was came off on its own.. No burning smell, no fans moving, no lights were blinking or anything

So my question is why did that happen and how can ii prevent it from happening again?
Need answers

PC specs : 16gb ram/3.70ghz i3-6100 processor/Radeon RX 460

PC is also 1 and a half years old

Also it does not have any viruses so it won't be necessary to think a virus caused the problem