Since the switches work I would say its mechanical. Open up the door, there are some great videos on youtube on how to do that. Then lock for a the little plastic piece that hangs on to the locking bar that moves your door lock up and down, maybe that is broken. They sell them at auto parts or...