Call if the air stays cool for long stretches outside of defrost, if the outdoor unit stays encased in ice after a defrost cycle, if it seems stuck in defrost, or if backup heat runs constantly or never comes on. Common causes include a reversing valve stuck in cooling, low refrigerant from a leak, a failed defrost control or sensor, a bad outdoor fan motor, or a failed backup heat element. Refrigerant work requires a certified technician and special equipment.
If the outdoor unit has stopped completely and you have backup heat, switching to emergency heat can keep the house warm until a technician arrives. Do not open the outdoor unit's electrical panel or try to free a frozen fan by hand.
If your backup heat is a gas furnace, the gas safety rules apply. If you smell gas, leave the home and call the gas utility or 911 from outside. If a carbon monoxide alarm sounds, get everyone outside into fresh air, call 911 or the fire department, and stay out until responders say it is safe.