Which of the following correctly describes where early Earth's water came from?

1.the atmospheric water vapor condensed
2.collisions of comets released water
3.dust storms caused disturbances in the atmosphere, causing rain 4.atmospheric nitrogen converted into early water vapor which was later pressurized into liquid
I think it's either 3 or 4 but please EXPLAIN your answer