Locking problem 197

Hi guys wonder if anyone is able to help, recently my keycard has stopped locking and unlocking the car, it used to work that if the key was in my pocket it would work fine but now it doesn't even work when pressing the buttons. I have tried changing the battery but the key doesn't work, the only way to start the car is to put the slot
 
i have no spare key :worried: and no, the buttons still not working with new battery. also, when i take the key out of the card and lock the passenger door manually with it, it doesnt lock the drivers door or boot?