If you can gain access to the sunroof control switch, check the connector firmly secured to the sw. module. The other thing you could do while there, is disconnect the sunroof switch, place a jumper between pins 2 & 5 on the connector (pins are 1 thru 6, right to left when looking at connector with lock device on top) check to see if sunroof opens. (ignition must be on) If you haven't done so already, check the connectors up on the motor, and control module that they are made up correctly. Have you tried to operate the sunroof manually like PDad suggested? That should actually be the first check on the list to verify that the sunroof is not mechanically bound up.
2003 SSEi, Light Bronzemist Metallic - All Stock For Now
IBEW Local 261 Groton, CT
My other vehicle is a nuclear submarine.