Make sure that no system fans are jammed especially graphics card if you have one. Sounds like an overheat issue. Download Speedfan to check your system temps.
Your CPU will overheat if the cooler has become detached which is why it may have worked on its side. Check the cpu cooler is on properly and you have thermal paste between it and cooler. The pins may have come loose.
GT
December 2010