Which lymph nodes are swollen can help identify the problem. 1  The glands on either side of the neck, under the jaw, or behind the ears commonly swell when you have a cold or sore throat.  Glands in the armpit (axillary lymph nodes) may swell from an injury or infection to the arm or hand.