Structure of materials

Which pairing gives a sound general explanation for the contrasting electrical behavior of many metals and many ionic crystals in their solid state?