Ear infections are often caused by bacterial infections. But whether you get an outer or middle ear infection depends on how you become infected. Middle ear infection. A middle ear infection often originates from a cold or other respiratory problem. The infection moves to one or both ears through the eustachian tubes.