Like in the other answer, we know that $$f(x\vert a\leq X \leq b) = \frac{f(x)\mathbb{I}_{(a,b)}}{\int_a^b f(x')dx'}$$
Where I'm using $\mathbb{I}_{(a,b)}$ as the identity function (i.e. it bounds it between $a$ and $b$).
For the denominator, we have:
$$ \int_a^bf(x')dx' = \int_{-\infty}^bf(x')dx' - \int_a^{\infty}f(x')dx' = \Phi(b) - \Phi(a) $$
Where $\Phi$ is the CDF of a $X$. Putting this together, we see that
$$ \mathbb{E}(X\vert a\leq X \leq b) = \frac{1}{\int_a^bf(x)dx}\int x f(x)\mathbb{I}_{(a,b)}dx = \frac{1}{\Phi(b) - \Phi(a)}\int_a^b x f(x)dx$$
Now, this question does a really good job at calculating $\int_a^b x f(x)dx$. Notice that they what's above is what their missing to calculate $\mathbb{E}(X\vert a\leq X \leq b)$. I'll re-write the rest below:
$$\int_a^bxf(x)dx = \int_a^b(x-\mu)f(x)dx - \int_a^b\mu f(x)dx $$
It's clear that $$\int_a^b\mu f(x)dx = \mu[\Phi(b)-\Phi(a)]$$
And through some manipulation we see that $$\int_a^b(x-\mu)f(x)dx = \sigma(-\phi(\beta) + \phi(\alpha)]$$ where $\alpha = (a - \mu)/\sigma$ and $\beta = (b - \mu)/\sigma$. See the above link for a definition of $\phi$.
Putting this all together and rearranging gives us:
$$\mathbb{E}(X \vert a\leq X \leq b) = \mu + \sigma \frac{\phi(\alpha) - \phi(\beta)}{\Phi(\beta) - \Phi(\alpha)}$$