If the motor is moving but the roof does nto, the cable for the sunroof might be bad.
I believe you should search for sunroof cable ont he site and see what you ocme up with.
'92 300CE - Sold
2004 C240 - C7 Wheels
2015 ML350 - P1, Pano, Ash poplar wood, Sport Dinamica interior, Running Boards Keyless go.