An electric element works on resistance.
It's basically a controlled short. If you were to put the hot and neutral together on a wire without a breaker or fuse then the wire would heat up and glow.
A heating element is actually insulated so that's why you don't get shocked.