Depends on the sort of motor, if its a permanent magnet DC motor then just reverse the connection with a relay and timer.