It sounds like it may be a case of ear mites, have you had the vet check yet? Ear mites can be so irritating and they will scratch at the head and ears.
I have only had one case of this after one of my dogs spent some time at a friends house, I hope I never see it again!!!
Debbie Ray
www.sumtoiyorkies