I did not fix it so I am not sure but....
I know that I left the window open during rain and there was a pool of water on the floor on the (left hand)passenger side. Shortly afterwards the window stopped working. I took the car to a garage who traced the problem to a connection box, or connector, of some sort under the passenger side front seat.