Could you clarify whether you have the EN pin floating or connected to anything, like an IO line from the microcontroller? The current sense (CS) pin should not have an effect on the driver outputs. The EN pins are pulled high by default, so there is no need to connect them to anything.
It is not clear to me whether your measurements of the driver outputs were taken between the two outputs or between each output and ground. Could you clarify? Do you have a motor connected to the driver? If so, could you post a datasheet or some specifications for the motors you are using. Could you also post pictures of your setup that show all connections.
By connecting 5V from the microcontroller to “VIN” on the driver, did you mean “VDD” instead? VIN is the connection point for the positive side of the motor power supply, while VDD is meant to power the driver’s internal logic.
It is unclear what you mean by “the problem calls when I hang up and continue connect the pwm pin”; could you restate that in another way? Giving a step by step process for how you are able to recreate the problem might help. It is possible to detect faults via the “EN” pin, which doubles as a fault indicator and is pulled low in the event of a fault condition. What is the voltage level on the “EN” pin after resetting?