For the ESP8266 to act as a WiFi modem for your Arduino, the ESP needs to be running the standard Factory AT firmware, but you’ve overwritten that with your own firmware.
You need to restore the AT firmware to your ESP8266.
Read this topic for more info:
That is the correct way.
Of course, you could save yourself a lot of hassle and choose better hardware to begin with…