Electrons inside atoms contribute magnetic moments from their own angular momentum and from their orbital momentum around the nucleus.
Ferromagnetic, paramagnetic, ferrimagnetic and antiferromagnetic materials have different structures of intrinsic magnetic moments.