my central locking isnt working anymore

, the car it totaly delock so i can leave it at my house so it has to say at my friends driveway, i dont know wots wrong, its just stoped working all of a sudden, the alarm works fine tho, usualy when i pressed the button on the key fob the car locks and the alarm arms its self, anyone got any ideas of wot could be wrong