please give us a bit more context
the sketch gets uploaded, but not sure what you mean with "it doesn't run".
It could be a sketch issue.
What IDE are you using?
which version of the ESP32 platform?
is the board an Arduino Nano ESP32 or another ESP32?