IB Physics What causes the resistance of a wire?

What causes the electrical resistance of a conductor? Some explanations from textbooks are given below:

Tipler and Mosca, Physics for Scientists and Engineers page 840 (6th edition)

When an electric field is applied, the field exerts a force -eE on each free electron giving it a change in velocity in the direction opposite the field. However any additional kinetic energy acquired is quickly dissipated by collisions with the lattice ions in the wire.

Serway and Jewett, Physics for Scientists and Engineers with Modern Physics page 779 (eighth edition)

The excess energy acquired by the electrons in the electric field is transferred to the atoms of the conductor when the electrons and atoms collide. The energy transferred to the atoms increases their vibrational energy which causes the temperature of the conductor to increase.

Serway, Physics for Scientists and Engineers with Modern Physics, page 784 (fourth edition)

According to quantum mechanics, electrons have wave like properties. If an array of atoms is regularly spaced, (that is periodic), the wave-like character of the electrons makes it possible for them to move freely through the conductor and a collision with an atom is unlikely. Electron waves are scattered only if the atomic arrangement is irregular (not periodic) as a result of, for example, structural defects or impurities. At high temperatures, the resistivity is dominated by scattering caused by collisions between the electrons and the atoms in the conductor, which are continually displaced as a result of thermal agitation. The thermal motion of the atoms causes the structure to be irregular (compared with an atomic array at rest), thereby reducing the electron’s mean free path.