the sun roof of my car opens and closes all by itself,specificially when it rain on 1998 Jaguar Vanden Plas

It first started when i forgot the sun roof open one day and it rained,from that time I could only open the front passengers side with the passengers side buttons.The drivers side button will not open any windows or doors.a few days ago it rained and the sun roof started opening and closing all by itself,it would not stay close for any significant period of time;as the rain subsided,it started to function normally,for the last two days,it worked okay,however,the sunroof button,isn't as responsive as it previously was.

Asked by for the 1998 Jaguar Vanden Plas
Sounds like bcm is no good..