It is a bridge. If you don't properly drive all 4 inputs then it will make a lot of smoke.
For the motor to turn one way, A and B must be low, and C and D must be high.
For the motor to turn the other way then A and B must be high and C and D must be low.