Macbook is not upgrading to a newer OS I have tried so many methods.

Held command and option down with R, and went into internet recovery, first installed Lion, then upgraded to Mavericks, but then tried to install Yosemite,

El Capitan or even Sierra and it fails. Now it wont even upgrade to Mavericks it fails

One thing about Mac is when an install fails only option is to reinstall a working Mac OS X which apparently seems to be only Lion for me, all the others fail extracting for

whatever reason.