This question is a great opportunity to talk about state symbols, ionic bonding, and multi-step reactions.
Very often when we write an equation for a chemical reaction we only look at the starting material and the products, like when you wrote the first form:
$$\ce{CO2 + NaOH (aq) -> NaHCO3 (aq)}$$
Multi-Step Reactions
Firstly, this form doesn't necessarily tell us what molecules are interacting with one another. Is one molecule of carbon dioxide colliding with one sodium hydroxide molecule to make a sodium bicarbonate molecule? In this case, no. Two different reactions happen in sequence.
- Carbon dioxide and water react to make carbonic acid.
$$\ce{CO2(aq) + H2O(l) -> H2CO3(aq)}$$
- Carbonic acid reacts with hydroxide ions to make bicarbonate ions.
$$\ce{H2CO3(aq) + NaOH(aq) -> NaHCO3(aq) + H2O(l)}$$
Reactions in Aqueous Solution
Secondly, the state symbols tell us important information about the reaction conditions. The (aq) state symbol tell us that the reaction is happening in aqueous conditions. That means the reactants are dissolved in water which can have a significant effect on how the reactants behave. Here the water reacts with carbon dioxide to form molecules of carbonic acid, $\ce{H2CO3}$, in solution which is an important intermediate in this reaction.
$$\ce{CO2(aq) + H2O(l) -> H2CO3(aq)}$$
The aqueous conditions also mean that ionic compounds are separated into their constituent ions. So $\ce{NaOH(aq)}$ actually means a solution of separated positive sodium ions, $\ce{Na+}$, and negative hydroxide ions $\ce{OH-}$, which can each react on their own.
As you might notice, that means our solution contains molecules of carbonic acid and basic hydroxide ions. A neutralisation reaction occurs. The basic hydroxide ions remove a proton from the carbonic acid to make water and a bicarbonate ion.
$$\ce{H2CO3(aq) + OH-(aq) -> HCO3-(aq) + H2O(l)}$$
Because the sodium ions don't react with anything, we can leave them out of the equation. This is similar to how we don't explicitly include water in the one step equation - because we would have the same amount of water on each side of the equation. If we add the sodium ions we get something equivalent to the equation for the second step.
$$\ce{H2CO3(aq) + Na+(aq) + OH-(aq) -> Na+(aq) + HCO3-(aq) + H2O(l)}$$
In water, $\ce{NaOH(aq)}$ and $\ce{Na+(aq) + OH-(aq)}$ are the same because sodium salts dissociate into their ions in water.
Adding equations
To see the equivalence between the multi-step form and the shorter one step form we can add together the equations for the two steps to get an idea of what is happening overall.
$$\ce{CO2(aq) + H2O(l) -> H2CO3(aq)}\\+\\
\ce{H2CO3(aq) + Na+(aq) + OH-(aq) -> Na+(aq) + HCO3-(aq) + H2O(l)}\\
\implies \ce{CO2(aq) + H2O(l) + H2CO3(aq) + Na+(aq) + OH-(aq) ->\\ Na+(aq) + HCO3-(aq) + H2O(l) + H2CO3(aq)}$$
There's a lot going on in this equation, but we can make it more readable but taking away $\ce{H2O(l)}$ and $\ce{H2CO3(aq)}$ from both sides, just like any mathematical equation.
$$\ce{CO2(aq) + Na+(aq) + OH-(aq) -> Na+(aq) + HCO3-(aq)}$$
In aqueous solution, sodium salts dissociate into their ions so we can write the ion pairs as the aqueous sodium salts.
$$\ce{CO2 + NaOH (aq) -> NaHCO3 (aq)}$$
So we've gone full circle, from a single summary equation, to the two reactions involved, back to the summary equation once again.