my sunroof is having issues its stuck open on 1996 Volkswagen Jetta

i have a 96 vw jetta and i closed my sunroof and when it got to the closed position it opened all the way and now it will not budge, when i push the buttons i hear a clicking like a relay and it wants to move but isnt im confused why it retracted itself please help me!!!!!!

Asked by for the 1996 Volkswagen Jetta
If you hear the sunroof motor clicking it is receiving power and the motor is "trying" to operate, it is likely headliner will have to be removed to examine the sunroof tracks and cable.