Possibly a broken wire where the harness passes from the door to the body, this area flexes every time you open/close the door and the wires can break over time. When I worked in a dealership we found that this is often the problem with intermittent power window operation.