Hello, what Format are the drives?
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.
Run Disk First Aid on all items in the left panel, from top down.
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.
More details...
Like many others, I ran into the dreaded “The recovery server could not be contacted” message when trying to do a restore of Mac OS High Sierra for a 2010 13 inch MBP that I was selling (yes I know it’s worth almost nothing, but someone wanted to buy it from me)…
How to recover a Deleted Hard Drive durin… - Apple Community
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/