If all you wanted to do was to drive it from one end to the other, then I would use a single pushbutton. When you press that button the Arduino reads which endstop is pressed and drives that transport away from that endstop until the other endstop is activated. You could also have a potentiometer to allow you to adjust speed.
For any more detailed help you're going to need to give us more details though.