Please do not bump your threads in the future.
If you have the time to bump, you have the time to use our search engine.
Sight unseen, my bet is that the sunroof motor is dying or the clutch that protects the closing mechanism is out of adjustment.
When you close the sunroof (or at least try to):
a) does the pitch of the motor get lower?
b) do you hear a popping noise from behind the sunroof opening?
If it's former, the sunroof motor is dying and will need replacement
If it's the second, the motor clutch is out of adjustment and will need to be tightened.
Let us know what's up.