Bi-directional Motor driver
The two leads of the motor are shorted together so no matter the state of the transistors, the current will always flow around the motor instead of through it.

For example, if the "Switch Motor" signal is pulled HIGH, then the current completely bypasses the motor as shown below:



When the "Switch Motor" signal is pulled low, nothing happens.  The base of the upper transistor is reverse biased, so it is in the OFF state and no current flows.  Unless you meant for that transistor to be a PNP instead of an NPN, then current would flow from 5V to GND but it would still bypass the motor.  Either way, the result is no motion from the motor.

I recommend studying how a classic H-bridge functions.  They're relatively simple circuits, and doing so will also teach you about flyback diodes to protect your circuit.  Here's a good explanation.