Got a tailgate window that won't go up and down? Run 12 volts directly to the motor to make sure it's bad, first. It's my experience that these motors are usually OK and that the problem is usually in the complex electrical interlock system. A terrific resource for checking this system is linked here:

http://www.4crawler.com/4x4/CheapTricks/RearWindow.shtml