Using Logic Gates to Power a Motor
simulate this circuit &ndash; Schematic created using CircuitLab

Trying to power a DC motor from glue logic isn't the best idea.
they aren't designed to sink a lot of current.
Remember a LED only pulls 20mA or so a DC motor will pull quite a bit more.
I would use the glue logic to drive a gate of a Mosfet that would sink the current required to run the motor, above is a rough schematic.
If you search MOSFET low side switch, it will give you more ideas.