It sounds like the display has failed or there is a problem with the GPU on the motherboard. Although your model can restore the same OS that was installed in Recovery Mode, it cannot do an Internet Recovery. If there is a version of OS X from 10.7.x and later, then you can reinstall it in Recovery Mode.
Install El Capitan or Later from Scratch
If possible, back up your files.
- Restart the computer. Immediately, at or before the chime, hold down the Command and R keys until the Apple logo and progress bar appear. Wait until the Utility Menu appears.
- Select Disk Utility from the Utility Menu and click on the Continue button.
- When Disk Utility loads select the target drive (out-dented entry w/type and size info) from the Device list.
- Click on the Erase button in Disk Utility's toolbar. A panel will drop down.
- Set the partition scheme to GUID.
- Set the Format type to APFS (SSDs only) or Mac OS Extended (Journaled.)
- Click on the Apply button, then wait for the Done button to activate and click on it.
- Quit Disk Utility and return to the Utility Menu.
- Select Install OS X and click on the Continue button.
An Internet connection is required and the Recovery HD partition must be intact. Otherwise, you will need the two Software Restore DVDs that came with the computer from the factory. Boot the computer from Disk 1 in order to install OS X 10.5.x.
If you have a copy of the retail Snow Leopard DVD, then you can use that to install Snow Leopard 10.6.3. Or, you can get Lion 10.7.5 from the online Apple Store. You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax. It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.