Servo or Stepper, which is best for forward and backward rotational or linear motion (Horizontal)
Stepper is much simpler to implement than servo. The stepper is open loop control, meanwhile the servo is closed loop control, so you would need an encoder feedback.

The stepper makes noise and vibrates, the servo is smooth. IMO in both cases you would need a transmission, like gearhead, belt, sprockets,..