Hello, I'm Jason. I will do my best to answer your question quickly and accurately using the information you have provided.
There is a rubber wiring conduit between the door and the pillar between the doors
often wiring gets broken inside this conduit, which causes the exact symptoms you describe
If you're handy with automotive wiring, you'll need to solder splice the broken wires back together, and insulate them properly