Electricity is always going to take the path of least resistance to ground. The rubber in your shoes is not a conductor of electricity, therefore you are not completing the circuit and you don't get shocked. Your bare feet, on the other hand ARE conductors of electricity, so when you hold the wire, you complete the circuit and become the path of least resistance to ground... ZAP!