Hi,
Does this happen even it's connected to it's AC adapter or charger? Here are some troubleshooting steps that may help.
- First is to do a hard reboot, remove the battery and unplug the AC adapter then press and hold the power button for 20 seconds then connect just the AC adapter and see if it will work normally or not.
- Do also try a different AC adapter that has the same voltage and see if it will not shutdown automatically.
- If these steps will not work the problem may lie inside the motherboard itself.
- Do try to reseat all the RAM's as well, remove them all for couple of second then put them back in making sure they are all seated properly.
- If all these will still not work then the problem is the motherboard itself already.