Have you tried it from the passenger door button itself ?, as this will narrow it down a bit, what to look for next, most likely a bad connection somewhere, motors don't normally give trouble, so looking at switch contacts or dirty connection, break in wire.
Try the passenger door switch first.
tabetha