Three ideas changed physics in the early 1900s. First, special relativity: the speed of light is the same for every observer, so a moving clock runs slow, a moving object is shorter along its motion and its mass rises with speed. The effects matter only near the speed of light.
Second, light arrives in packets called photons, each of energy hf. One photon gives its energy to one electron, which explains the photoelectric effect: frequency decides the energy of the electrons, intensity decides only how many are emitted. The Compton effect shows that photons carry momentum too.
Third, particles behave as waves with a de Broglie wavelength, and position and momentum cannot both be known exactly.