I am wondering what actually happens when an electron moves in the valence band. As I understand an electron needs energy to free itself from an atom. Is it so that the electron gets energy to free itself from the atom, then moves to a new atom, and the loses the energy when it recombines with the new atom? If so, how does it initially get the energy?