The earth acts as a conductor and is considered to be at zero potential. If a person touches a live wire while barefoot, a potential difference is created between the body and the earth, allowing current to flow through the body to the ground. This can result in severe electric shock or electrocution.
To prevent this:
Always wear rubber-soled shoes.
Stand on insulated surfaces when working with electrical appliances.