How to upgrade Mid-2009 MacBook from Mountain Lion to El Capitan?
As per the support documentation you should be able to download El Capitan from the App Store.

If you've previously downloaded El Capitan with your Apple ID (e.g. onto another device), you should find it on the "Purchased" tab.