An injection from the naturals to the rationals is just the identity function (every natural is a rational).
For an injection from the rationals to the naturals, do the following. If $x\in\mathbb Q$ then $x=p/q$ for some $p,q$ with no common factor, $p\in\mathbb Z$ and $q\in\mathbb Z+$, and these values of $p$ and $q$ are uniquely determined. Write $f(x)=2^p\times 3^q$ if $p\geq 0$ and $f(x)=2^{-p}\times 3^q\times 5$ if $p<0$. This is an injection from $\mathbb Q$ to $\mathbb N$.
It is possible to define a bijection between the two, but it is more fiddly to do so.