Below are the basic wiring diagrams for a thermostat on a standard air conditioning and heat pump HVAC systems. The wiring colors shown below are standard thermostat wiring colors. The original installer of your thermostat may not have used these colors.

residential thermostat  A/C wiring diagram for one stage cooling one stage heating

residential thermostat Heat Pump wiring diagram for heat pump systems