Could be corroded contacts on the inside of the door, a split wire where the loom goes from the door to the car (as had occurred on mine), or a dodgy box in the boot.
I would test the connector readings from the boot ECU before taking the door card off to help diagnose the problems. Here are my notes from when I had to trace a door/window fault:
Click here for big pic link. Click here for big pic.