There's really not enough information here. The motor voltage is critical. I assume it's DC but it could be anywhere from 5 to 100 volts, or more.
If it was AC, which doesn't seem likely, then an opto-isolated triac such as the MOC3043 (3063?) could be driven with a 5v signal and drive a triac like a BTA12-600BW that would switch 120VACor 240VAC, so long as the motor wasn't really honkin big. This requires only a three external resistors.
For DC you could possibly turn on an n-mosfet connected to ground with a ttl signal, so long as it was a logic level mosfet. It would also have to be rated for the motor voltage. Then that could pull down the input to a p-ch mosfet to turn on the motor. To avoid too high a voltage from the supply to the p-mosfet gate I'd put a high value resistor (R1) say 100k,between the n-mosfet output and the p-mosfet gate with a zener diode, larger than the p-mosfet on threshold, say 5.6v for a logic level p-mosfet, in parallel with a 1k resistor (R2)Then when the n-mosfet was on it would pull the p-mosfet gate 5.6v lower than the motor voltage and R2 would drop the rest of the voltage. When the n-mosfet was off R1 would pull the p-mosfet gate up and shut the p-mosfet off. The only issue here is that when the n-mosfet is off R1 and R2 will pull the n-mosfet up to the motor voltage so the n-ch mosfet has to be rated for the motor voltage.
I'm assuming that you're not trying to switch the motor quickly, such as with a high frequency pwm. In that case you'd have to consider the mosfet response times, a whole other subject.
If your motor voltage is very high you might be able to use an opto-isolator. I'd have to have more information so I could make a more intelligent suggestion.