Saw the answer in the title.
Do this:
rm /home/pi/.emulationstation/es_input.cfg
Then reboot. It should prompt you to reconfigure your controller in ES. If that doesn’t work, it could be a problem with the controller. I have the same ones as you and they worked flawlessly