I know that the earth quakes and shakes during a earthquake, but I do not understand how it moves. Can somebody explain how it moves?

These sites have good explanations.

http://science.nationalgeographic.com/science/earth/the-dynamic-earth/plate-tectonics-article.html

http://pubs.usgs.gov/gip/dynamic/understanding.html