You need to clarify what is troubling you. For example momentum = mass x velocity, where mass is scalar in units such as grams, while velocity is a vector where the components are in units of distance divided by time, such as meters per sec.

The formulas for energy and momentum are chosen such that those quantities are conserved under certain circumstences. That is the whole point of these two concepts. The conservation of these qunatities was deduced empirically.