坏了 is the all-purpose "it's broken" and attaches to anything: a phone, a lift, a plan. 没电了 means out of battery or out of power, and you will use it constantly. 空调不制冷 is specific in a useful way: the air conditioner runs but does not cool, which is the failure you actually encounter.