Torque is applied around the axis of rotation. So if you want to move forward in the X direction, you need to apply torque around the Y Vector to spin the ball forwards. If you want to make the ball spin on its axis you would apply Torque on the Z (spinning around the Z axis).
Think of the axis like the axle of a wheel.