The Age of this computer will Govern what newer version of macOS it will Qualify to install. Use About this Mac from the Apple Icon on Desktop - the required Information will be there.
With the above information in-hand - follow this How to get old versions of macOS and verify what version this computer Qualifies to install. Make sure to use Only Safari to commence the download as Others may not work. Safari will open a redirect and open the App Store to download the chosen version of macOS in previous action.
Make a Time Machine Backup Before attempting. Notation - Mojave is the Last version to support 32 bit applications / extensions and Drivers.
Are there any AntiVirus, Disk Cleaner, Optimizers, Un-installers, etc installed which should be removed as per Developers Instructions. They are useless, unneeded, cause havoc and interfere with the normal operation of the OS and may even Corrupt the OS requiring a Reinstallation