you may want to check the fuses, the fuse box on this car is loacted under the hood on the right side in the back. There shouldn't be any other reason for it to stop working. Hope this helps.
sunroof not working
could be the fuse, but the sunroof relay is above the sunroof switch attached to the motor, the relay is a possible answer to the sunroof not working.
check for a bad fuse
The computer chip that controls your windows may not be working. You should have a professional diagnose your windows to determine the actual problem.
Check fuses
If you have an Chevrolet Impala where the sunroof will not close, it is most likely the motor of the sunroof that is not working correctly. It may also be a fuse that has gone out.
If dome lights and sunroof of a Mitsubishi Galant are not working, it is probably due to blown fuse. It is time to replace old ones.
I know that the interior lights could be messed up due to a recent replacement/fixing of the telescoping antenna. Or if this is a (post-1996) W210, this won't make sense to you. The sunroof would most commonly be just switches, clean them some way or another. Unless the sunroof slowly died by getting slower and slower until it stopped working, then it really needs to be greased, seriously using only MB grease.
Broken cable?
Check the fuse that controls central locks; replace if defective.
I can tell you that if you need a new sunroof GO TO THE DEALER. This can be very difficult to fix. I say dealer bcos although you will pay more it will take lesstime and you will have a warranty. I let a someone who worked on mescedes do mind and I regret it. He took to long to fix it and it makes noise that I did not hear before. Gook luck
Mine just did the same thing...did you find out what the problem was?