One of your components may be shorting out. If so your computer will automatically shut off to prevent damage. I've seen this with rookie builders who forget standoffs and screw their mobo directly into the chassis. Could be a bad component or maybe something got moved etc.
how would i determine which component is shorted out?