How do I check the earthing?

Earthing stops appliances becoming live as a result of a short circuit. How does it work and how do I check it?