thank you for the contribution and help,i found the problem it was a disconnected wire from the motor driver to the nano