Controlling spin motion and interactions in a one-dimensional Bose gas