In quantum mechanics, operators $\{J_x,J_y,J_z\}$ measuring the angular momentum of a state are required to obey the commutation relations
\begin{equation}
[J_i,J_j]=i \sum_k \epsilon_{ijk} J_k.
\end{equation}
If we only care about the spin of a particle, which does not know about the wavefunction, the state of a particle becomes a length $n$ vector (we do not know what n is yet, it depends on the spin of the particle), and the operators measuring spin angular momentum become $n\times n$ matrices $\{S_x,S_y,S_z\}$ satisfying the same commutation relations
\begin{equation}
[S_i,S_j]=i \sum_k \epsilon_{ijk} S_k.
\end{equation}
A set of three matrices obeying these commutation relations is called a representation of the Lie algebra $\frak{su}_2$. To know what the different possible spins are, we need to know what the possible values of $n$ are.
It turns out that there is such a set of matrices for each integer $n=1,2,3,...$ and they are unique in some sense. Physically we have decided that the spin of a particle is $(n-1)/2$. There is a general procedure for constructing these matrices, and you can find it in the quantum mechanics book by Cohen-Tannoudji for example. I will give the answer for $n=1,2,3$.
The singlet state has $n=1$, and we choose $S_i=[0]$. The three angular momentum operators are the $1\times 1$ zero matrix, and the only state in the system has $(n-1)/2=0$ angular momentum.
The doublet state has $n=2$, and we choose $S_i=\sigma_i/2$. You can check that this has the correct commutation relations. The matrices $S_i$ all have eigenvalues $\pm 1/2$, so the possible angular momenta components are $\pm 1/2$ (spin up or down) and we say the particle has spin $(n-1)/2=1/2$.
The triplet state has n=3, and we choose
\begin{equation}
S_x=\frac{1}{\sqrt{2}}\begin{bmatrix}
0 & 1 & 0 \\
1 & 0 & 1 \\
0 & 1 & 0
\end{bmatrix},S_y=\frac{1}{\sqrt{2}}\begin{bmatrix}
0 & -i & 0 \\
i & 0 & -i \\
0 & i & 0\end{bmatrix},S_z=\begin{bmatrix}
1 & 0 & 0 \\
0 & 0 & 0 \\
0 & 0 & -1
\end{bmatrix}.\end{equation}
These matrices all three have eigenvalues $1,0,-1$, so the components of the angular momentum can have these three values and we say the spin is $(n-1)/2=1$.
The matrices get uncomfortably large for larger n, and I think you can see the pattern, so I won't give more examples.
Now, what is a representation of the Lie group $SU_2?$ If we have an $n\times n$ representation of $\frak{su}_2$, we can use the matrix exponential to make a set of matrices $\exp(i S_k \theta_k)$ for $\theta_i$ three real numbers. By using the Campbell-Baker-Hausdorff formula, we can work out how to multiply two of these matrices from the commutation relations. Because of the way this multiplication behaves, we say that the set of matrices $\exp(i S_k \theta_k)$ together with the multiplication formula give a representation of $SU_2$.