Carbohydrates mainly produce one purpose, which is making energy, Vitamins are for normal bodily functions.
Carbohydrates are also a macro-nutrient, vitamins are micro-nutrients, you don't need as many of them, but you do still need them.
Carbohydrates are for anabolic metabolism, vitamins are catabolic metabolism.