The water you are speaking of sounds like a sunroof drain leak. At the rear and front of your sunroof assembly there are drains which channel water through the interior side pillars to the ground. If one of these becomes cracked or falls off the fitting it is attached to you will see interior floor leaks. I would say you are probably looking at a right rear drain tube that is the problem. This is a big job to fix and requires extensive disassembly of the interior. The headliner and all a, b, and c pillar trim will have to be removed. The parts cost will be minimal as the tube is not expensive, but labor is pretty high on these repairs because of the extensive disassembly. As for your window, hold the window switch in position 1 up(position 2 is the auto up function) and bring the window all the way up. Now hold the switch in this position for 10 seconds. Now lower the window fully and hold for 10 secs. The window should now be re-normalized. As for your fan not working, it is probably unrelated and you may just need a blower motor regulator to fix this.