First thing to have checked is the pressure of the gas in the system. This can be checked on diagnostic equipment. You can check some things yourself quite easily. Where the aircon regas hoses are attached to the car you should see black plastic caps like large tyre valve covers. Unscrew them and then have a good look with a bright light into the valves. These are schrader type valves (same as tyre valves) and sometimes after a pipe is disconnected after a regas, the valve may have a slight leak. If it is or has leaked you will see a greenish yellow fluid. In the valve itself you will see a small bar and using 2 very small screwdrivers you can try tightening it a little. Or borrow/buy the correct tool for this. A standard one for tyres is too small by the way.
If there is no sign of a leak use a screwdriver and momentarily push the plunger down a touch. If it is fully gassed up you will hear a hiss just like a tyre. You must not discharge this gas to atmosphere so only a very brief touch will tell you if it still has pressure.
If the car is fully up to pressure then a faulty compressor, faulty pressure switch, control panel etc can all cause failure.
Halfords usually try to get out by saying a stone has punctured the condenser (aircon radiator) so have a look and see if there is any green/yellow staining. If your checks do not show a fault then it must go on diagnostic equipment as low pressure will prevent it working so you need to know what it really is.