In previously uploaded circuit diagram, there was no connection with the arduino uno ground to motor driver L298N ground. So it didn’t work properly. I came to know that after the meeting with Jahirul Jitu as I was using Arduino Nano and that worked properly
It was my fault, he suffered for it. Sorry and Thanks to him. For him I better studied it and found this one.
the new circuit diagram is here