However, more research is needed to fully understand its effects on immunity. Energy Production: B vitamins, including B1 (thiamine), B2 (riboflavin), B3 (niacin), B5 (pantothenic acid), B6 (pyridoxine), are crucial for converting food (carbohydrates, fats, and proteins) into energy.