Rule out the simple things
Make sure you are not unlocking one lock while another is still locked: many doors have a knob lock and a deadbolt, and some have a chain or a second deadbolt. Try turning the key both directions fully, then pull or push the door gently toward the frame while turning, in case the bolt is pinched.
What it can mean
If the key spins freely with no click, the connection between the cylinder and the bolt mechanism may have failed. If you hear the bolt move but the door still holds, the latch may be stuck. Each is different, which is why describing the sound and feel matters.
Stay out of the frame
Prying at the gap with a knife or screwdriver can damage the latch, the frame and the weatherstripping. If simple checks do not work, call.
Interior locks and privacy sets
If the problem is an interior door, such as a bathroom or bedroom privacy lock, check for a small emergency release hole on the outside handle. Many privacy sets are designed to be opened from outside with a simple tool in an emergency. The manufacturer instructions explain how. Exterior doors are a different matter, so call for those.