Best is to get a scan to see what the fault is . Also try this but there is a chance the issue will come back
"1. Disconnect battery & connect leads with a jumper wire. Wait 5-10 minutes.
2. Reconnect battery, place key in ignition & initiate reprogramming sequence.
3. Sequence = turn key to "ON" position only, wait 10 seconds. Repeat 5 times.
* I also pressed the unlock buttons, both on the fob while in the ignition & the door button.
Held each for 5-10 seconds while key was "ON", both individually & together during each "on-off" sequence."