Problem with L293D controller

Hello i have a problem with L293D DC motor controller, when i connect pin 1 to 5V, pin 2 to 5V, pin 5 to GND, pin 7 to 0V and pin 8 to 5V, there is 5V from OUTPUT1(pin3) and 0V from OUTPUT2(pin6) which is correct and motor works smoothly, but if i connect pin 1 to 5V, pin 2 to 0V, pin 5 to GND, pin 7 to 5V and pin 8 to 5V, there is 0V from OUTPUT1(pin3) and 0V from OUTPUT2(pin6) which means that motor doesnt work. Is the microcontroller damaged?
dataSheet

Before blaming the micro or the software, it helps to wire the chip correctly, per the datasheet available here L293D data sheet, product information and support | TI.com
All four GND pins should be wired to your circuit ground.
VSS (16) should be wired to your 5V supply. It provides the voltage reference for the logic.
Since you’re not using channel 2, it should be disabled, wire Enable2 (9) to 0V.