The power connection at the motor. When I pulled out the connection, you could see all the corrosion. I cleaned the connection on the cord side. I was able to spray some anti-corrosion stuff in the motor connection and the window does work now. The right thing to do was to remove the motor and clean the connection but I was too lazy to bother.

I would remove the power connection from the motor and see if you have any corrosion.