Did the lock and unlock buttons ever work?
If they did work at some point:
Try disconnecting the vehicle battery (both positive and negative terminals) for at least 10 minutes. This will give it a chance to reset
If they never worked:
You will most likely have to get it programmed. I recommend a locksmith over the dealer, they will be a little less costly. It is usually less expensive to get 2 programmed at the same time, so if you have more than one to program now is the time to do it. You can order spares from this site
https://keylessentryremotefob.com