The cause of overheating and shut down is the build up of dust within the machine itself. If this is a desktop then disconnect from the mains supply. Open the side panel of the unit, and blow away any dust, clean the fans, make sure all vents are clear, if the fans are not working then that is the problem, replace the fan.