Hello jorgecastej,
Thanks for posting in the Apple Support Communities forum. It sounds like you're having an issue with the mic on your AirPods only. Use these steps to Change the settings of your AirPods and AirPods Pro, specifically setting the microphone to left, right, and automatic to test all ways to record.
After testing with each AirPod to isolate, If your left or right AirPod isn't working there are additional troubleshooting steps to take. Just in case the AirPods need cleaning, here's How to clean your AirPods, AirPods Pro, AirPods Max, and EarPods.
If the issue remains, try this:
How to reset your AirPods and AirPods Pro
Connect your AirPods and AirPods Pro to your iPhone
You can lastly isolate by testing the AirPods with another product to see if the mic works there.
Have a great rest of the week!