The question is whether you want to get pure $\ce{HCl}$ and pure $\ce{NaOH}$ or whether you want a hydrochloric acid solution and a sodium hydroxide solution. If the former, I hereby direct you to Klaus’ answer. If the latter, read on.
The neutralisation of hydrochloric acid and sodium hydroxide is often simplistically given as in equation $(1)$.
$$\ce{HCl + NaOH -> NaCl + H2O}\tag{1}$$
However, that reaction is only true for gasous $\ce{HCl}$ reacting with solid $\ce{NaOH}$. When one neutralises the acidic, aquaeous solution and the basic, aquaeous solution, you need to first consider equation $(2)$ (for $\ce{HCl}$) and $(3)$ (for $\ce{NaOH}$).
$$\ce{HCl (g) + H2O -> HCl (aq) + H2O <=>> Cl- (aq) + H3O+ (aq)}\tag{2}$$
$$\ce{NaOH (s) + H2O -> Na+ (aq) + OH- (aq)}\tag{3}$$
In both solutions, the compounds can be considered completely dissociated. Once you mix these two together, a standard acid-base reaction happens in which only half of the ions react at all — see equation $(4)$.
$$\ce{Cl- (aq) + H3O+ (aq) + Na+ (aq) + OH- (aq) -> Cl- (aq) + Na+ (aq) + 2 H2O}\tag{4}$$
Removing the spectator ions gives us equation $(4')$
$$\ce{H3O+ (aq) + OH- (aq) -> 2 H2O}\tag{4'}$$
And this, when viewed closely, is the autoprotolysis of water (equation $(5)$) reversed.
$$\ce{2 H2O <<=> H3O+ + OH-}\\ K_w = [\ce{H3O+}][\ce{OH-}] = 10^{-14}\tag{5}$$
The ion product $K_w$ I added there shows the concentration of $\ce{H3O+}$ and $\ce{OH-}$ ions in a neutral solution. To be able to reverse that reaction you would somehow need to generate substantial quantities of $\ce{H3O+}$ and $\ce{OH-}$ — but they just aren’t present at equilibrium in the concentrations you would need, since their formation is strongly endothermic (and thus their destruction strongly exothermic).
And that is the true reason why an acid-base neutralisation is not reversible in many cases.