Did you get blue screens before it restarted itself? Check Dr. Watson logs. Possible memory issues. Get a memory benchmark program to test your DIMM(s).

Easiest thing is to borrow known good spare parts and start swapping them out one by one to isolate the failing component.