Open the door and insert the key into the deadbolt. Turn the key to ensure you have proper bolt action. Spray graphite into the key hole and try again if the bolt is stuck.
Close the door once the bolt is moving properly and try engaging the lock. If it doesn't insert into the door jamb, move to the next step.
Inspect the door to ensure it is sitting straight. Look at the hinges. If needed, remove the hinges with a screwdriver and adjust them up, down, left or right so that the door sits straight in the door jamb. Reattach the screws through the holes in the hinge with a partner holding the door in place to ensure it is straight and that the deadbolt lock lines up with the lock hole in the door jamb.
Loosen the screws for the bolt strike plate. Adjust the strike plate so that the bolt can insert freely into the door jamb.