Using an External Monitor - Reinstall the macOS
Use an external monitor. See if you can see the login screen. If so, reinstall the macOS. You would connect it a monitor or TV or projector with a HDMI Port. Perhaps a corrupted system file needs to be replaced - an a reinstall is intended to fix just that.
Hold Down the Shift Key upon boot. Once at the login screen, release shift. See if it all now works. In Safe Mode, only necessary items load (i.e. the caches), and new preferences are set aside.
If nothing above works, then...
Nothing would be lost, it's just that sometimes changes are made to your system, and then then processes become corrupted, technically. When reinstalling, deleted files are reinstalled, and misplaced files are moved back to where they should be. Go Here: How to reinstall macOS from macOS Recovery - Apple Support.
Back up your Mac Prior to the Reinstall:
Are you Concerned of Losing Data?:
- If not, just move ahead and erase the disk and then install the macOS.
- If so, then first backup your macOS, using the methods I mentioned above.
Backing Up the Mac: Start by creating a Time Machine backup of your Mac, so that you can have something to restore your Mac from, should anything go wrong with the reinstall. Go Here: Back up your Mac with Time Machine - Apple Support