In isolated atom the valence electrons can exist only in one of the permitted orbital's every of a sharply explained energy known as energy levels. But when two molecules are brought close to every other, there are changes in energy levels and they spread in the form of bands.