Check fuse in plug - socket switched on - try different socket - check cable fully plugged in at rear of machine. - try another cable.
switch at rear of PC? shut down may be due to heat so may restart when cooled,
PSU may have blown - motherboard may have blown - if no leds fans or HDD noises.