Before we were born we lived in the presence of God but we had no body. We were spirit children of our Heavenly Father. He presented this plan, with Christ as the center, so that we would be able to have all of the blessings our Father in Heaven wanted to give to us.
Under the Direction of the Father, Jesus Christ created the Earth. All things are and were done in order, and we needed somewhere to go to gain physical bodies, and to be tested.
Heavenly Father then created Adam and Eve.
-- 1 Corinthians 15:22
"There are also celestial bodies,
and bodies terrestrial:
and the glory of the terrestrial is another.