I'm just guessing here but from the photographs it looks as though you do not have the motor connected, that means the collector (output) pins have no load on them and could 'float'. You might be seeing leakage through the freewheeling diode on pin 9.
One of the 'gotcha' issues on these devices is the voltage on pin 9, it should be the same voltage that feeds the motor. The freewheeling diodes should effectively be across the motor windings. If the motor voltage is higher than pin 9, the diodes will conduct the higher voltage to that on pin 9, maybe not enough current to operate the motor (if all windings are energized like that it wouldn't turn anyway) but certainly enough to cause heating in the IC.
Brian.