I don't seem to see buffering between the ESP32 and the relay in your breafboard setup. Usually (and preferred) an optocoupler for galvanic isolation or a transistor. I also don't see a flyback diode.
You should never connect a relay directly to any microcontroller; chances are that you have damaged your ESP32.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project
See About the Installation & Troubleshooting category.