With children this young it is imperative to not assume anything. It could very well be related to building up of sinus pressure from the teething or the ear infections, but it is just too much for parents to try to diagnose. You can try some mild age and dose appropriate sinus medicine like Tylenol Cold and Allergy Liquid, but there is only one way to do it right and that is to take him in. You may even need to take him in more than once, so if you try anything before getting there: Write the details down and bring any meds you have tried so the medical staff can let you know if the things you've tried were possible improvements or not. If he is not sleeping well, this would also add to the desire to bang his head. Try some things that relax and soothe, like a dryer running, rocking him, vibrating toys in his bed. He still needs lots of comfort, you just have to be as firm as necessary, but still gentle enough to calm his fears. I'd say his emotions are a healthy phase, and banging may be typical for some boys, but you've got to rule out all medical possibilities. Hope that helps. Prayers to you.