If she's over 18 months old or so, it can be a bacterial infection. Younger than that, it can be a neurological problem that shouldn't affect the animal's ability to thrive for a while. I've seen "spinners" (as I've heard them called, and call them myself) get progressively worse, to the point that they are not able to eat or drink or interact with other rats, so I feed them off at the first signs of spinning. I haven't had many, but it pops up every now and then.