In general one can distinguish between solid elements which typically have only translational DOFs and structural elements which may include also rotational DOFs (e.g.,beams, structural shells).
The type of the DOFs (traslational, rotational , temperature etc.) contained in element formulation has little to do with the element dimensionality (2D, 3D) but rather depends on the underlying theory the element formulation is derived from.
I suspect you used a structural element type for your 2D model and a solid continuum element type for the 3D model.