The aircon compressor will also not do anything if the gas has all leaked out, it could be you’ve been unlucky and a pipe or join has burst or leaks suddenly, a stone or corrosion has damaged the condenser, but basically no gas = no cold air but the aircon button will still turn the light on and off.