Simple Motor with 2 Limit switches

You might be interested in Tim Hunkins latest video as I seem to remember he does just this with just the limit switches

Failing that it is probably a "H bridge" which you need to be able to do this using the Arduino