EASY fix. Take of the map lights and the plastic piece where the switch for the roof is, unbolt the sunroof motor, with it unbolted, use the switch. The motor has gotten in a bind. Once you have it closed, Disengage the motor from the stub and cycle the switch to "pop up" position and back to "closed". This will put the roof and the motor in phase again. Put it all back together. You will need Torx bits FYI.
Once you get in there it will make sense