How do you tell if you have an ear infection?

Pain in the center of the ear, a high pitch ringing, and hardness of hearing.