how to download OS X El Capitan for MacBook Pro A1278
Apple has a page How to get old versions of macOS which includes a link to download OS X El Capitan 10.11.
The next question is going to be how to make a bootable installer. Do you have another Mac available?
If so, DiskMaker X would be the place that I would start.