How do I know if my thermostat or furnace is broken?

How do I know if my thermostat or furnace is broken?