Theia, who brought the water to Earth and ... our Moon

Where does the water on Earth come from? How was our Moon formed? And is there one single event that had led to the formation of both?