First explain details of the motor, these can run from mains powered Universal motors to small, low voltage P.M. DC type.
All it seems you need is a dual timer, either off the shelf or If you Google 555 timer you will find more than you need.
For just on/off control this could be done with a...