I believe there was just nothing physical at one point. Until God decided to create matter and spirits which inhabit matter.