Display sometimes works, sometimes goes blank. Loose wiring or failing thermostat.
If the thermostat fails to sense the correct temperature, it won't signal the HVAC to run.