Spin is an angular momentum, so in the rest frame it is a 3-dimensional vector, or 4-dimensional vector with zero time component:
$\vec{v} = (v_1,v_2,v_3)$
Each 3D vector can be associated with a 2x2 matrix by the following rule:
$V = \begin{vmatrix}
v_3 & v_1-iv_2 \\
v_1+iv_2 & -v_3
\end{vmatrix}$
In particular, if you chosse $\vec{v}$ as a basis vector: $\vec{v} = (1,0,0)$, it is associated with matrix
$H_1=\begin{vmatrix}
0 & 1 \\
1 & 0
\end{vmatrix}$
Similarly, for $\vec{v} = (0,1,0)$ you will get
$H_2=\begin{vmatrix}
0 & -i \\
i & 0
\end{vmatrix}$
and for $\vec{v} = (0,0,1)$ you will get
$H_3=\begin{vmatrix}
1 & 0 \\
0 & -1
\end{vmatrix}$
These are Pauli matrices. Now arbitrary vector corresponds to linear combination of $H_1, H_2$ and $H_3$. For given $\vec{v} = (v_1,v_2,v_3)$ you will get
$V = v_1 H_1 + v_2 H_2 + v_3 H_3$
Further you can use matrices to act on special objects with 2 complex components. These objects are called "spinors". They are used to construct wave functions of fermions with 1/2 spin. For instance, we can choose spinor of the form
$s_3=\begin{vmatrix}
1 \\
0
\end{vmatrix}$
and act on it with matrix $H_3$. We will obtain:
$H_3 s_3=\begin{vmatrix}
1 & 0 \\
0 & -1
\end{vmatrix} \begin{vmatrix}
1 \\
0
\end{vmatrix} = \begin{vmatrix}
1 \\
0
\end{vmatrix} = s_3$
As you can see, $s_3$ is an "eigenspinor" of $H_3$ with eigenvalue +1. There is also another "eigenspinor" of $H_3$ with eigenvalue -1:
$\begin{vmatrix}
1 & 0 \\
0 & -1
\end{vmatrix} \begin{vmatrix}
0 \\
1
\end{vmatrix} = -\begin{vmatrix}
0 \\
1
\end{vmatrix}$
Why do we use spinors instead of scalars, vectors and tensors? Because:
- We can construct vectors out of spinors. These vectors are always isotropic, but they have spatial direction.
- We can use Pauli matrices and their linear combinations to rotate vectors constructed from spinors. The rotation rule is very simple: if $s$ is initial spinor, then the rotated spinor is $\bar{s}=(\exp{iV})s$. If we construct a vector from $\bar{s}$, it will be equivalent to "ordinary" rotation of the vector constructed from $s$ around the axis parallel to $\vec{v}$ to the angle $|\vec{v}|$.
Now if, for instance, $s$ is an "eigenspinor" of $H_3$, then direction of the vector constructed from $s$ will be invariant w.r.t. rotations around z axis.