If you type an equation representing a 2D curve, it plots in 2D. If you type an equation representing a 3D surface, it automatically plots in 3D.