I believe the issues you're having are unrelated, unless it's the wiring that goes from the car body, through the door, and to the switches. It's possible from being flexed as the door opens/closes, the harness could have some frayed wires. Another possibility is that the door lock relay is bad causing the door locking issue, and the window switches are a fairly common issue on these cars. The other possibility is window motor itself is going bad.