Does it get past the bios and then turns off, does it pass the loading screen and turns off? Or does it do it at random?
Check cables, conections. Remove any external stuff.
Can U get in bios? (del key or f2 key on startup)
Can U get in safe mode or disable automatic restart to see if U get a bluescreen? (press a few times f8 on startup)
Check temperatures and fan (dust)
Do you hear any weir noises? (Can U hear any beep codes from the bios?)