The material has defined density of the states of given energy $\rho(E)$. Then it can be proven that the number of the electrons of given energy follows the distbibution
$$ n(E) = \rho(E) \frac{1}{1+e^{(E-E_F)/kT}} $$
with some (for now, unknown) parameter $E_F$. As the total number of electrons $N$ is also defined by the material, we have an equation
$$ N = \int_0^\infty \rho(E) \frac{1}{1+e^{(E-E_F)/kT}} dE $$
which, in a convoluted way, defines what $E_F$ is. Therefore $E_F$ is defined by the properties of the material $(\rho(E)$, $N$), but also by the temperatue $T$. However, the depencence on the temperature is usually very weak and can be neglected. Because of that, from the practical point of view it's usually more useful to describe the material by the pair $(\rho(E), E_F)$ rather than $(\rho(E), N)$. We should remember however that $E_F$ isn't a fundamental property of the material, but a derived one.
Note that energy levels with $E<<E_F$ can't conduct because they are completely filled (and therefore these electrons can't easily change their state), and energy levels with $E>>E_F$ also can't conduct because they are completely empty and there's no electrons there that can change their state. Only the energy level of energy $E \approx E_F$ can conduct. The temperature $T$ defines the scale $kT$ which tells us how close to $E_F$ the electron actually needs to be to conduct.
The fermi level defined in such a way can happen to have a value for which $\rho(E_F) > 0$, then we get a conductor, because close to the fermi level there will be plenty of partialy occupied energy levels that electrons can use to conduct electricity. If the Fermi Energy happens to be in a region where $\rho(E_F) = 0$ and there are no available nergy levels nearby, we get an insulator. If the Fermi Energy happens to be in a region where $\rho(E_F) = 0$ but there are some available energy levels nearby, we get a semiconductor, because these energy levels will be almost completely empty or almost completely filled, but not quite, so there will be a small amount of electrons or holes that can conduct electricity.
We can also see how additions to a semiconductor change the fermi level. They usually don't significantly change $\rho(E)$, but they can change $N$ enough so that the Fermi level $E_F$ changes significantly.
$E_F$ can also be affected if $\rho(E)$ is modified, for example by the external electric field, or in case of some materials, by mechanical stress, etc.