Sunroof problem... and Seat belt problem

My sunroof stopped working all of a sudden few weeks ago! What do i do??
Also this one is weird! So my automatic belts stopped working too right? but EVERY time I wash my car and turn it over it starts working AGAIN for the day and then after that its back to no good… I dont get it… I know the wires run differently because my friend relocated the box before i bought it off him. Could the water hitting it cause it to tweak??