How can I input data from the screen of smart phone into the esp32
I need it to send step qty to control step motor
You can use a web server with an HTML form or WebSockets.
I have that tutorial ready to control a stepper motor where you can insert the number of steps. It will be published soon.