DON'T PULL THE SUNROOF!!! I had a similar problem with mine, so try this first. The grounds for the motor get corroded. The shop way is to pull the headliner off and replace the ground wires. A far easier fix is to make up too short leads, use in-line wire splices(the blue t-like connectors) and if memory serves me right, connect one end of them to pins 2 and 4 of the switch, and the other to one of the mounting bolts of the motor. Stakon-connectors make it a professional looking job.Worked fine for me, cost...about 25 cents...my kind of fix, and far less time consuming as well. Check with the wiring diagram for the ground connections, incas my memory is failing....)
Steve
Steve