The first thing I would recommend it buying a "Shop Manual" for your model make and year. You can find them on-line in digital or paperback format. This really assisted me in understanding how to fix components and if there are any hazards and safety issues. The window glass is very heavy, so the window mechanism has a very strong coil spring to assist the electric motor. It is critical you secure this "X" shaped assembly BEFORE you start to remove the electric motor assembly as it will cut and maim you if your not careful. Lots of sharp edges on those metal parts.
Check out this video as a general understanding.
Hope this helps. Remember, while in there, clean off all your tracks and rollers - then re-lubricate them. The widow will work like new. Also clean out any junk in the bottom of the door and check if the drain holes (if any) are clear. If your inner door plastic is in bad shape, cut and new out of fresh plastic. This keeps all water and moisture away from your door panels.