Could be low pressure in the system, as they have a pressure switch built into the system, so if there is a leak then it will cut the air con off to prevent damaging the pump if it is run with no lubricant in it.
Only way to tell though is to have an air con specialist with the right tools look at it as its not something you can do at home really!