While waiting for more knowledgeable peeps to pop on.
It'll be either a switching/wiring problem, or the solenoid on the AC unit.
the fact that the fan works tends (I am being brave here) to suggest it is less liekly to be a switching problem. A multi meter should tell you if it is being "asked" to come on.
When it happened to me I got a secondhand one off eBay which worked fine. Saved on the gas by clamping the two pipes with clamps and bits of wood.
Best of luck.