The lithosphere isn’t a continuous piece that wraps around the whole Earth like an eggshell.
Earth's outer skin is not a continuous surface. Instead, it is composed of massive segments called tectonic plates.
Tectonic plates are constantly shifting as they drift around on the viscous, or slowly flowing, mantle layer below.
This non-stop movement causes stress on Earth’s crust. When the stresses get too large, it leads to cracks called faults. When tectonic plates move, it also causes movements at the faults and produced energy which travel in the form of waves known as cesmic waves which cause vibration or shaking of earth in the form of earthquakes.
Simply an earthquake is the sudden movement of Earth’s crust at a fault line.
Center of motion is located in the plate is called Hypo Center. The center of the earthquake on the earth's surface above it is called the Epicentre.
An earthquake’s most intense shaking is often felt near the epicenter. However, the vibrations from an earthquake can still be felt and detected hundreds, or even thousands of miles away from the epicenter.
Some time cesmic waves produced due to havey explosion which cause the vibration or shaking of earth as well.
When an earthquake occurs, different types of energy waves are generated.