Let $K$ be the field $\mathbb{F}_2$, that is the field with two elements, $0$ and $1$. A field with four elements is the same thing as a field $F$ which contains $K$ (or an isomorphic copy of $K$) with $[F : K] = 2$.
In general, if $f$ is an irreducible polynomial in $K[X]$ with degree $d$, then the quotient ring $K[X]/(f)$ will be a field with $2^d$ elements.
So letting $f = X^2 + X + 1$, the field $F := K[X]/(f)$ is a field with $4$ elements. Here $\omega$ is the image of $X$ in $K[X]/(f)$. Any element in $F$ is by definition a coset $g + (f)$, where $g$ is a polynomial in $K[X]$. By the division algorithm, since $f$ has degree $2$, every coset $g+ (f)$ can be replaced with an equal coset $h + (f)$, where $h$ is a polynomial of degree at most $1$. So if $h = a + b X$, then the image $h+ (f)$ will be $$[a + bX] + (f)= a + b \omega$$
Since $a, b \in K = \{0,1\}$, you get your four elements as $0, 1, \omega,$ and $1+ \omega$.