My cat does that when she is in heat. She is probably not in pain. They tend to rub on the floor or anything they can when they are in heat, and the sound is a calling to get a male cat to come and impregnant her. She should be fine, but if you are still worried I would take her to the vet just to be sure.