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
To fix a sunroof in a 1990 Mercedes 420, first, ensure the power supply to the sunroof motor is functioning properly. If the motor is working but the sunroof is stuck, check for any obstructions in the tracks and clean or lubricate them as necessary. If the motor is faulty, you may need to replace it, which involves removing the headliner and accessing the motor assembly. Lastly, ensure that the sunroof seals are intact to prevent leaks after repairs.
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.
Mine just did the same thing...did you find out what the problem was?