Head shaking can be a sign of an ear infection, especially if it is accompanied by other symptoms, but it can also be a sign of other problems. If your baby has begun to shake their head and they have other symptoms or they’re not meeting developmental milestones, visit your doctor.