There is a problem with the compressor.
AC is a complicated system. Many things are involved in turning the compressor on. Your problem could stem from low refrigerant, an electrical issue, or a mechanical problem with the clutch or compressor. I recommend having a certified technician, such as one from YourMechanic, come out to your car’s location to inspect your AC system, and suggest the best path to repair.