Answer
See below.
Work Step by Step
The direction of the magnetic force is always perpendicular both to the magnetic field and to the motion of charges. This can be used for different purposes.
In the motor effect, a current is driven through the wire and the magnetic force pushes the wire.
In the generator effect, the wire is driven through a magnetic field, and the magnetic force pushes charges through the wire, producing a current.