Current in a wire, across a magnetic field, gets pushed sideways. Push one side of a loop up and the other down, and it turns.