Magnetic force acting on a charge particle moving with velocity v in a magnetic field B is given by
F=q(v cross B)
Here electrons are going through rim to centre and then towards the screw which is suspended by a strong cylindrical magnet to the positive terminal of the cell
Due magnetic field the electrons experiences tangential force so the iron screw rotates.
Observe the video!!!