It may just be your capacitor..
A capacitor is needed to start and support the condenser fan motor and compressor while the air conditioner is operating.
Failure of capacitors is the most common reason for a breakdown in the summer heat. The electrical components get very hot during their operation. In combination with the summer heat, such as a rise in temperature causes a capacitor failure.
When your A/C doesn’t operate, the most likely cause will be a capacitor...
>> Read more about It may just be your capacitor..