When two materials have opposite electrical charges, one negative and one positive, they are attracted to each other. Can get this result by rubbing the two materials together such as a rubber balloon rubbed on a carpet - when the balloon is then held near your head, it will make your hair move towards the balloon (the two materials are now oppositely charged).