SpaceX came close to completing an hourlong test flight of its mega rocket on its third try Thursday, but the spacecraft was lost as it descended back to Earth.