Ear infections are common in babies and young children. These infections may be caused by pneumococcal bacteria. An infection that affects the middle ear is also called otitis media.