Basics of how an earthquake occur