What is the difference between 2D and 3D motion graphics?

Motion graphics made with After Effects are usually two-dimensional. When it comes to the third dimension, it means that we have depth in our work and the layers in the image have different distances and perspectives from the camera. But in 2D motion graphics, we do not use the camera and all the layers are moved in the X and Y axes.