Here's a general guide, but you absolutely must consult a repair manual specific to your year and model Ford Ranger. This will show you diagrams and specific instructions vital to avoiding damage. A Haynes or Chilton manual are good options, or you can often find free repair guides online if you search by year, make, and model.
General Steps (Consult your repair manual for specifics):
1. Interior Door Panel Removal: You'll need to remove the interior door panel. This usually involves removing screws (often hidden under covers or armrests), carefully prying off plastic clips, and disconnecting any electrical connectors (power window switches, door lock actuators, etc.). Take pictures as you go to help with reassembly.
2. Window Regulator Access: Once the door panel is off, you'll see the window regulator mechanism. The window motor is typically attached to this regulator.
3. Disconnect Electrical Connector: Locate the electrical connector supplying power to the window motor. Carefully unplug it.
4. Remove Motor Mounting Bolts/Fasteners: The motor is secured to the regulator with bolts or possibly other fasteners. These are often hard to access, so patience is key. Your repair manual will show the exact location and type of fasteners.
5. Separate Motor from Regulator: Once the fasteners are removed, the motor should separate from the regulator. It may be held in place by a retaining clip or other mechanism. Again, your manual will give specific details.
6. Remove Motor: Carefully remove the motor from the door.
Important Considerations:
* Window Position: It's generally recommended to lower the window completely before starting this process to provide easier access.
* Clips and Fasteners: Be extremely careful when removing plastic clips and fasteners on the door panel. They are often fragile and break easily.
* Electrical Connectors: Be gentle when disconnecting electrical connectors. Force can damage the connector or wires.
* Repair Manual: This is absolutely crucial. Attempting this without a proper manual increases the risk of damage and frustration.
If you're not comfortable performing this repair yourself, it's best to take your Ranger to a qualified mechanic. Replacing a window motor isn't always straightforward, and improper installation can lead to further issues.