However, in Earths First Billion years and over the past 4.5 billion years, the main source of water was from comets. We know that comets consist chiefly of chemical compounds that are either gases or liquids at earth-surface conditions: methane is one common component of comets and water is another.
hope it helps :)