use a good graphite powder
There are a number of reasons why your door might not lock. You could have something stuck in the door for example.
Stuck how? Lock? Door?
Yes, the key being stuck in the lock is making it difficult to open the door.
"My lock is stuck"?
spray with WD40 if that doesn't help replace the door lock
The lock may be stuck in the door due to dirt, rust, or misalignment of the internal components. To fix it, you can try lubricating the lock with graphite powder or WD-40, cleaning the lock mechanism, or adjusting the alignment of the door and frame. If these methods don't work, you may need to call a locksmith for professional assistance.
You can not close any door if the locking mechanism is stuck in the locked position. You must first get the mechanics to unlock.
door car zipper key/lock window
Your key may be stuck in the door due to a variety of reasons, such as a worn-out key, a damaged lock mechanism, or debris obstructing the keyway. It is recommended to gently jiggle the key, lubricate the lock, or seek professional assistance to resolve the issue.
door lock actuator stuck,bad door latch if rear door has child saftey on a bad door entry handle.
The expedition door lock relay could be stuck causing the grinding noise. Check to insure that the lock relay is working properly.