The biggest killer of power windows is dirt in the window guides. Over time it loads the motors causing them to eventually fail. Once the motor dies, and it usually does in the down position, is to pull the window regulator from the window cam channels and push the window glass up and find some way to lock it in place until you can replace the motor. Be careful replacing the motor as some are under spring tension in the regulator and unbolting the motor without locking the regulator arms can cause injury.
To clean the window guides I use Silicone spray lube...lots of it down the window guides running the windows up and down a few times and more lube. You should also put some light grease in the regulator cam rollers and channels.
2001 Ranger Edge 3.0 V6, 5 speed M/T
Limited Slip Differential, James Duff Traction Bars
Kumho 30x9.50 15 MT / Black 297 Series 15x7 Rims