ear mites /bugs wax/ best to have the vet look inside they do this when there is an irritation or infection, also earache ...check it out.
Have you looked at the inside of her ears to see if they are red? My dog scratches her ears until they bleed and she gets ear infections frequently.