That means it cannot find a bootable source, if itisn' because of a dead Hard Drive try this...
Start up from macOS Recovery
Option-⌘-R
Upgrade to the latest macOS compatible with your Mac.
In Disk Utility>View, select Show all Devices, highlight the top left entry.
APFS won't work for Sierra or earlier, Sierra or earlier needs MacOS Extended Journaled. High Sierra won't work for APFS on earlier Macs.
If all else fails...
https://mrmacintosh.com/how-to-fix-the-recovery-server-could-not-be-contacted-error-high-sierra-recovery-is-still-online-but-broken/
Use http:// instead of https://
https://www.youtube.com/watch?v=ouNQS36dIBw&t=95s
The formula for caos: APFS+macOS High+EFI… - Apple Community
MacOS High Sierra Problem - Apple Community