Shine red light (700 nm) on a clean potassium plate and nothing happens, however bright the lamp. Switch to a dim violet lamp (400 nm) and electrons fly off at once. A wave picture predicts the opposite: a strong enough wave should eventually shake any electron loose. The photon picture explains it. Light delivers energy in packets of E=hf: a red photon carries about 1.77 eV and a violet one about 3.10 eV. Potassium's work function, the minimum energy to pull one electron out, is 2.3 eV. Each electron absorbs one photon at a time, so red photons are each too small, and a million of them cannot team up on one electron.
The photon's energy pays the exit fee first, and the rest becomes kinetic energy: a violet photon leaves an electron with at most 3.10−2.30=0.80 eV. Electrons from deeper in the metal lose some energy on the way out, so 0.80 eV is the maximum, not every electron's energy. The threshold frequency is where hf just equals ϕ, about 5.6×1014 Hz (green light, 539 nm) for potassium. A brighter lamp sends more photons per second, which frees more electrons and gives a bigger current, but each electron's maximum energy stays the same.
A glowing filament in an old radio valve also gives off electrons, but there heat supplies the energy, not single photons, and there is no threshold frequency. Ask what delivers the energy: individual photons striking a surface means the photoelectric effect.
Think of it like this. The photoelectric effect works like a ticket machine that accepts only single coins and never adds them up: a coin worth less than the ticket price is rejected however many you feed in, while a bigger coin buys the ticket and returns change. Photons are the coins, the work function is the price, and the change is the electron's kinetic energy.
Core idea. Light delivers energy in packets of hf, and each electron absorbs one packet. If hf is below the work function, no electron escapes however bright the light; above it, the leftover energy hf−ϕ becomes the fastest electron's kinetic energy.