Birds can sit on power lines and not get electric shocks because the electricity is always looking for a way to get to the ground. The birds are not touching the ground or anything in contact with the ground, so the electricity will stay in the power line.