When you are given enthalpies of formation (ΔHf) you can use the formula ΔHrxn = Σ(ΔHf products) - Σ(ΔHf reactants).
When you are given bond energies the formula is ΔHrxn = Σ(ΔHbonds in reactants) - Σ(ΔHbonds in products).
The reactant can also have kinetic energy among other things, but thermodynamically I think that the only energies you need to consider are the bond energies.