How to recover the 3D view?
Click and drag the handle in the upper right hand corner of the timeline down to split the view, then set the new timeline to a 3D view by clicking on the editor selection menu in the left side of the header:



See How to close view windows? and the wiki for more information.