Which H-bridge circuit? Link to data sheet or schematic please.
There should be Enable and Phase inputs or other inputs that allows turning on any leg of the H-bridge. When one side-upper and the opposite side bottom is on then the motor turns in one direction. When these are flipper, first side bottom and opposite side top is on then the motor turns in the other direction.
Google H-bridge to learn how it works.