From King James Genesis 1 (http://www.kingjamesbibleonline.org/Genesis-Chapter-1/)
"
1 In the beginning God created the heaven and the earth.
2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.
3 And God said, Let there be light: and there was light.
"
The waters pre-existed the light since God moved upon their face before saying "Let there be light".
As to heaven and earth. The first line could be seen as a summary of what is to follow since in 2 the earth is without form and void and subsequent lines describe how the land and seas were created.
And heaven isn't created until
"
7 And God made the firmament, and divided the waters which were under the firmament from the waters which were above the firmament: and it was so.
8 And God called the firmament Heaven. And the evening and the morning were the second day.
"
and the stars and sun are created even later
"
13 And the evening and the morning were the third day.
14 And God said, Let there be lights in the firmament of the heaven to divide the day from the night; and let them be for signs, and for seasons, and for days, and years:
15 And let them be for lights in the firmament of the heaven to give light upon the earth: and it was so.
16 And God made two great lights; the greater light to rule the day, and the lesser light to rule the night: he made the stars also.
"
So clearly according to Genesis the waters pre-existed the stars. Which doesn't fit in with any scientific explanation since it looks like you need stars to produce oxygen before you can have any water. But then what do you expect from a pre-scientific creation myth where the authors if they had given it any thought would probably have regarded water as a fundamental element.