Acute pharyngitis and tonsillitis occur when the pharynx and tonsils become infected with a virus or bacteria. They are common ailments that cause sore throat and the tonsils to become swollen and painful.