The magnetic properties of a material are governed entirely by the configuration of the electrons in that material. In metals there are two types of electrons: bound electrons and free electrons. The two types of electrons have different energy levels, and materials with more free electrons will have a higher energylevel and will therefore be attracted to magnets.