Some fruits and vegetables, such as bananas, berries, citric fruits, carrots, garlic, and ginger, keep you from getting sick. Also important are chicken and dairy products.