All vitamins are essential to a healthy body, but Harvard Medical School says vitamin A is a key player in maintaining a strong immune system. When you have a cold, try eating sweet potatoes, carrots, squash, spinach, or collard greens.