Its sounds as if the compressor clutch is not operating, so this would need to be diagnosed as to why its not operating, has it actually failed or is it not getting a feed, this could be the compressor relay, so further investigation would be needed and it could be just a cheap relay or a more expensive clutch windings or even just a broken wire/loose connection.