Right I'll put some pics up but if you have got the door card off it makes sense to get the whole thing out and test it.
Get the plastic sheet cut back, you only need to cut into the bottom part. Thread the speaker wire through the plastic sheet, under the gaffer tape, then fold it back, securing it up out of the way with a bit(s) of tape.
View attachment 212393
Here you can see the six bolts that hold the mechanism to the door frame, you will also see the circular hole cut in the metal that will allow you to disconnect the wire from the motor. Also to be seen in the trangular hole to the right of this. The bottom of the quadrant is visible as is the side-entry bar. The obvious part of the loom goes off to the door mechanism.
Here is a close up of the plug.
View attachment 212395
And here is how it comes off. you have to prise up a bit of plastic at the top and prise the plug away, left to right.
View attachment 212396
Here is the mechanism still attached to the window glass but all slid down to the bottom of the door. You can just see the two bolts, one at each end of the bottom of the glass connecting the runner to the mechanism.
View attachment 212397
The mechanism is attached to the bottom of the window glass with two bolts, the left hand one is much easier to get at than the other one. The right hand one can be a right bitch to get at and get undone. I had to do one of them unseen with a spanner as opposed to a socket. This image was taken after I took it off, tested it and put it back on again to ensure I could do it on the car! Much easier if the glass is in the down position before the motor fu cks up!
Close up of these two bolts. left first.
View attachment 212399
And the real sod, the right one.
View attachment 212400
Once you have got those both off then you can wiggle the mechanism free with the motor attached. Then once you have got the motor off (Three torx headed bolts) the two terminals are obvious and you can test the motor with wires direct from a battery, or simpler, just put the plug back in and test it on the car.
You may, as I have explained already, find the motor with lots of water in it. Just pull fairly gently on the armature at the gear end and it will come forwards just a bit and you can shake the water out, then spray WD40 down into it to get the rest out, then spray lubricant into it to keep it from doing any harm. I did ask on my own thread on this about what lubricant to use and in the end used a WD product that I knew still conducted electricity cos I tested it with my meter!
The mechanism you may well find is very stiff at the big central pivot point. A bit of penetrating oil followed up by movement to and fro then grease should sort it.
All this is presupposing there is not actual damage to the quadrant or the gears, but the big gear is not plastic which is in its favour.
Putting it all back together is not so bad as you can use the motor to position the quadrant/mechanism to make it easier to get the six bolts back in.
I found the biggest PITA was getting the plastic pins in the door card to line up and go back together properly. It took me about 4 or 5 goes and I had a full set of spare pegs. I needed them all!
Best of luck and do get back to us and tell us how you got on!