It sounds like the lock itself is knackered but check the wiring from pillar to the door for breaks