Have had the same problem twice. First time was due to an overheating CPU during a hot Summer. A better CPU cooler sorted that out.
Second time around, it was the graphics card that was overheating, due to me placing a new network card too close to it. Moving the network card down a slot sorted that one out.