Car recieves signal from key but doors wont lock/unlock

Hi so I recently bought a 2010 corolla s and its been running good. I changed the rear speakers last night and the unlock/lock worked fine. I did my front speakers today and it still worked. After I took it for a drive and I tried to lock the doors with the remote it didn't unlock. So I've been messing around with it and I noticed it only keeps if you press lock when all the doors or unlock beeps when a door is unlocked. If the door is locked and you press unlock it does nothing. The interior electric locks don't work either. I couldnt find anyone with the same issue can someone please help me