Why some of the materials are insulators?

They are bad conductors ,they do not allow heat transfer.