Radioactive elements in the core of the Earth decay which produce thermal energy, causing the lower mantle to heat up and rise, creating convection currents that push the plates
When an oceanic crust is jolted during an earthquake, all of the water above this plate is displaced, normally upwards
The water is then pulled back down due to gravity, transferring the energy into the water and travelling through it like a wave
As the wave gets closer to the coast, the sea level decreases so there is friction between the sea bed and the waves, causing the waves to slow down and gain height