Why does a wire get hot when current flows through it?

GCSE