Electrical, Drivers side door window wont roll up on 2002 Dodge Caravan

My window wont work. I roll it down it wont roll up until its ready. I will play with the switch or beat on the door and then it may decide to work. The other windows work from my door panel. How do i find out if it is the motor, switch, or relay's?

Asked by for the 2002 Dodge Caravan
This is likely the switch. It's very common for switches to act like this when they are failing.