Comb rubbed with hair gains electrons from the hair and becomes negatively charged. These electrons are accumulated on the surface of the comb. When a piece of paper is teared into bits, positive and negative charges are present at the edges of the bits. Negative charges in the comb attract positive charges in the bits. So, the paper bits are moving towards the comb.