If it's an E36, it could be the Comfort Relay, which controls the windows and sunroof.

Located behind the glove box, it's a light blue coloured relay.

Part should be available new from the Main Dealer.

Not sure what car you have so that's just a stab in the dark from me.