problem about mouse move

hello,I would like to draw a plane ,a line after
it and a sphere before it.And I can use
the mouse to make the sphere rotate.
But when I tryed it , the line and the plane which are after it disappered.what is the problem ?Can anyone help me ?thank you very much!

Make sure you use pushmatrix and popmatrix to isolate your chosen transformatiosn to the objects you want to transform.

Also begin each frame with a glLoadIdentity to make sure you begin with a clean slate and make sure you ballance your pushes and pops.