How did water come to planet earth?

a large ice asteroid came form space and hit earth malt with volcano