Factors like the weather, damage to the key, and even a buildup of dirt and grime inside the locking mechanism can all stop a door from locking. If you're having trouble locking your front door on a regular basis, you should consult a locksmith as soon as possible.