Thank you all for the fruitful discussion. Sorry that I didn't go online for the weekend.
After reading all your comments, I think about it again. I shall further rephrase my question as follows:
I understand that the work function is related to the photoelectric effect. But I read on Wikipedia about the electron emission due to a high temperature - a phenomenon called "Thermionic emission" (
https://en.wikipedia.org/wiki/Thermionic_emission). So according to my understanding, as long as an electron gains enough energy, no matter what form of energy (light/kinetic), an emission may occur.
Naively, I think that if an electron travels in an electric field, let's say 1000V over 1km, then after it travels 20m, it will gain 20eV energy, which is sufficient to escape. If the electron does not escape, that means it must have lost energy.
The next thing that comes to my mind is that the electron is not traveling in a vacuum but a metal. The Drude model comes to play. It describes a group of electrons drifting slowly while individual electrons bouncing the stationary ions frequently. That means the electrons may exchange energy with the ions.
Combining the above thoughts, I propose two possibilities where both contradicts to reality.
1. The electrons continually transfer kinetic energy to the ions so they cannot escape from the metal. However, it means that the energy is localised and most of the energy is dissipated as heat which is not the real case as we can transmit our electricity pretty well in the power grid. According to my logic, the maximum energy carried by the electrons cannot exceed the work function, which would mean the eventual voltage arrived at the end-user cannot be bigger than a few volts.
2. The electrons do not lose most of their energy to the ions. Then, in a short time, it shall acquire enough energy to escape from the metal wire.
I understand that I must have made some wrong arguments in the above construction. Sorry that I may not present clearly enough.