The lock mechanism is broken. Can you keep it lock from inside the car?
There are many things that can cause this. Take it to a garage.
The answer is a key
Try using the key to open the lock mechanism while the door is unlocked.
You can not close any door if the locking mechanism is stuck in the locked position. You must first get the mechanics to unlock.
Probably going to have to take the inside cover off the door (which will be difficult with the door closed) to get to the locking mechanism. The controls for the seat and the lock / unlock button cover comes out with a screwdriver - see if you can get that out and go from there. Under that cover you will see a rod that leads to the lock mechanism that you can manually unlock the doors with. Good luck!
Unlock it from inside the car with the door lock.
I had the same problem. I think it is due to wearing of the internal part of the door mechanism. The handle on the inside of the door will open it. I removed the door inside panel and can see the mechanism but I cannot figure out how to remove it just yet. The window slide rail is in the way. The mechanism is connected with four linkages, the top lock plunger, the door handle rod, the door key rod and the solenoid that actuates the whole thing. The solenoid is pulling but it can't pull hard enough to overcome what is worn. The key also does not overcome it. The door handle will. This is all I know yet.
I have a similar problem, My drivers side front and back work fine, it's my right side front and back that move but don't quit lock or unlock. Each door has a motor that operates the door lock mechanism when the door lock button or the remote lock button is pushed. If the door lock moves a little but not enough to lock or unlock the door, then either the motor is not working fully or it is partially jammed, or the door lock mechanism is binding and the motor can't move it fully. Remove the door lock trim panel and check all the components involved in the door lock process until you find the problem. I had the same problem in my 1999 Sub. The factory uses rivits to hold the door lock actuators in place. Over many uses the rivits elongate and the actuator travel is not enough to over come the longer distance. Try replacing the rivits with short screws. Short so they do not interfear with other stuff that moves in the door.
Does that lock work using other methods like the button on the door, or keypad/keyfob?If not, it's likely the door lock actuator mechanism is failing.See "Related Questions" below for more
A faulty the door lock sensor will cause the door locks to lock and unlock repeatedly. The door lock sensor is located below the dashboard on the drivers side.
If the door on a Hyundai Gl will not open from the inside, the child safety lock mechanism should be checked. The lock mechanism is found inside the door jab underneath a label that says 'child lock'.
Without a spring, the lock would never unlock. Therefore, a lock of a door required a spring.