If you have a matrix M that looks like
\begin{bmatrix}1&0&1&1\\-1&2&0&4 \\ 0&2&1&5\end{bmatrix}
Does Mx=b (x and b are vectors) have a unique solution for all possible values of b?
And also how can I know the basis for the range space or the null space?
I have done Gaussian elimination on this matrix and I got \begin{bmatrix}1&0&1&1\\0&1&1/2&5/2 \\ 0&0&0&0\end{bmatrix} so I was guessing that \begin{pmatrix}1\\0\\0\end{pmatrix} and \begin{pmatrix}0\\1\\0\end{pmatrix} are the basis for the range space of this matrix.
Hint: add first row to the second row
Edit in response to OP's comment and edit:
OP has calculated the RREF of $M$
$$\begin{bmatrix}1&0&1&1\\0&1&1/2&5/2 \\ 0&0&0&0\end{bmatrix}.$$
$M$ can be viewed as a linear transformation from $\Bbb{R}^4$ to $\Bbb{R}^3$, so its range is its column space spanned by a basis $\{e_1,e_2\}$. (OP has got it right.)
The nullspace of $M$ as the set of $x \in \Bbb{R}^4$ so that $Mx = 0$. By the Rank-nullity Theorem, $\operatorname{nullity}(M) = 2$, so the nullspace of $M$ has dimension two.
From the third column of the RREF, we have basis vectors for the nullspace of $M$: $v_1 = (1, 1/2, -1, 0)^T$; from the fourth column, we have $v_2 = (1, 5/2, 0, -1)^T$.
Since $\operatorname{nullity}(M) > 0$, $Mx = b$ doesn't have unique solution.