I had a locked rear door problem which was nothing to do with the door lock motor. The door had been a bit problematic since the car was new. It would often not open from outside, but if I bumped it from outside with my backside, while lifting the handle it would then open. It was always possible to open it from the inside though. Eventually it failed to open and as luck would have it that was after I had set the child locks so that it wouldn't open from inside.
So, with a cut off hacksaw blade, after checking the position on the other door, I was able to move the child lock lever from inside the car and get the door open.
Then took off the inside door lining, and found inside the door, that a plastic nut, which has to be positioned so that it engages with the outside operating lever, had moved on its spindle (because the internal thread had stripped or not been sufficiently well engaged).
The solution was to screw the nut to the correct position and put superglue on the threads. There has been no problem since then.
I'd like to add a photo, but don't know how to do that.