Sound travels faster in iron than in air. In solids, the distances between the molecules are closer and thus the atoms are more densely packed than in gases. Therefore, the molecules quickly collide with one another and transfer the vibrational energy.