By definition, a spherically symmetric body has the same moment of inertia about any axis passing through its center of mass. This situation changes if there is no spherical symmetry. Since most rigid bodies are not spherically symmetric, these require special treatment.
The relationship between the angular momentum of any rigid body and its angular velocity, both of which are vectors, involves the moment of inertia. The moment of inertia is a scalar quantity only for spherically symmetric rigid bodies. Otherwise, the moment of inertia is not a scalar quantity and is called a tensor. Scalars and vectors are special cases of tensors.
To relate angular momentum and velocity vectors, six independent values are required to describe the moments of inertia along the three orthogonal axes in 3D space. In special cases, such as when unique independent axes of rotation are chosen, only three numbers are sufficient to describe moment of inertia. These are called the principal axes of rotation and principal moments of inertia, respectively.
An object with three unequal moments of inertia is called an asymmetric top. The mathematics of its rotation is complicated, but it can be simplified by considering conservation principles. The angular momentum vector is constant if there is no external torque. Its magnitude is also conserved. This condition provides one constraint on the angular speeds. The other constraint is that the total kinetic energy is also conserved.