When a plastic comb is rubbed with dry hair, it acquires electrons that get rubbed off from the atoms of the hair.
In a liquid like water, the molecules are free to reorient themselves.
When the negatively charged brush is brought near the tap, it repels the electrons in the water, so that the side of the water nearest the comb then has a positive charge, i.e hydrogen, atoms align themselves towards the brush.
The attraction between this positive charge and the negatively charged comb results in a net attraction force on the water, which causes bending in the stream of water from the tap.