Yes, a bad thermostat can cause the heater to stop working. If the thermostat fails to accurately sense the temperature or adequately communicate with the heating system. It may cause the heater to turn on or maintain the desired temperature.