H-Bridge ic not working as expected
The inputs need to be actively pulled-down for them to operate: -



Notice the PNP transistor will not be turned on unless a current is taken from the base to GND. To be sure, if you are using switches, use 10k pull-up resistors (as indicated in the data sheet) and the switches should ground the inputs to activate them.