Well those a re two separate system and the only component that is used with both is the blower. Typically the air stops working do to a lack of refrigerant or some type of components failure.
The most likely reason is, your air conditioning pump my be no longer working. The heat and the air conditioning do not run off the same thing in most cars.