Before it stopped working and it was acting odd, would the window move smoothly even though it may not be doing what you wanted it to do? If so, it sounds like this is the switch issue and not the motor.
Some times these switches get wet or the contacts begin to wear and they act crazy like this. I would suggest checking for power at the motor when pressing the button up or down.
If pressing down, you should have 12 volts on the green and white wire at the motor. If up, you should have 12 volts on the green and red wire.
If you do not then the switch is the issue. If you do then the motor is the issue.
Let me know if you have questions.
https://www.2carpros.com/articles/how-to-check-wiring
Images (Click to make bigger)
SPONSORED LINKS
Monday, August 10th, 2020 AT 2:04 PM