Sorry, didn't read your post fully,,,
Just replace the head motor in that case. Brushes probably just about worn out or sticking.
Could also be a simple bad wiring connection, but banging the head is most likely aggravating the brush contacts in the head motor. I never bothered changing brushes, or know if they are available - i always changed the motor as these are quite an old machine now.