If your thermostat was in place when it overheated, you need to replace it: my understanding is that overheating kills thermostats.