If you have been using the same door lock for quite a long time, there are chances that the door lock is jammed due to the misaligned mechanism. The misalignment prevents the lock from smoothly opening and/or locking, in the way that it is supposed to. In order to deal with the misalignment, you can examine the lock and try and figure out what might have caused the misalignment.