Most DirectX tutorials that even mention the zbuffer only mention setting the Device.RenderStates.ZBufferEnable property to true. Unfortunately, there's a few more things you need to do before this will work.
When setting up the PresentParameters, set:
presentParams.AutoDepthStencilFormat = DepthFormat.D16; presentParams.EnableAutoDepthStencil =true;