If the sunroof will not open or close this is a good place to check. Always check your switches before you start replacing expensive parts.
One-Touch Window and Sunroof Controls
Add the convenience of one-touch windows or sunroof to any BMW - fully compatible with any factory BMW power window system. Simply tap the switch once and the window with travel all the way up or down. There's never any need to mount additional switches because Autoloc's BMW1T works with all BMW factory window switches. The BMW1T may be used with any remote control devices that operate your windows. The BMW1T is Made in the USA and comes with a limited LIFETIME WARRANTY.