One of my friends had the problem that he couldn't connect his AirPods to a MacBook, and these steps helped him.
Turn on your MacBook Bluetooth on
Open your airpods lid
Hit the reset button of your airpods
To finish the process just access the device list of your macbook and the airpods and done.