Foods rich in B vitamins include whole grains, leafy green vegetables, meat, dairy products, eggs, nuts, and legumes. For example, spinach is high in folate, while chicken is a good source of niacin. Incorporating a variety of these foods into your diet can help maintain adequate levels of B vitamins, which may contribute to overall health and potentially reduce cancer risk.