Sounds like it's your comfort relay, just changed mine. You can resolder it but a new one is only $18.00.
http://forums.bimmerforums.com/forum...=comfort+relay
When the sunroof is the problem it's usally on the solder joint just to the right of the one their talking about. I resoldered
it and it started working but sometimes it would take a couple of minutes after cranking the car. Just get a new one and you will
be fine.