A lock that is jammed can be due to various reasons. The majority of it is due to inappropriate maintenance or incorrect alignment. Check the alignment of the door-knob and then the springs and the latch. See any possible obstruction between its way and remove it if possible.