MacBook can be the one most sought-after from the entire line of Apple products. It is generally accepted that MacBook is a reliable product with a lifespan of many years. For those who are fortunate, the MacBook can go on and on for many years without having any issues. Although the root of the issue isn't clear, however, there are some options to overcome this issue. 

Before you start to determine the cause or the solution, it's vital to ensure that your data is secure. For that reason you need to back up your data, a backup is an absolute requirement. It's great when you regularly backup your data, but if haven't done so, consider making any other changes. You can also avail reputable mac service online.

Image Source: Google

Make use of an external drive to backup when your MacBook is not restarting. You can do this using the Command + R keys. If you have accessibility to the other MacBook and both have firewalls, you could make use of one to act as an additional hard disk for backups of your data.

If you have a habit of creating backups then you're ready to continue. The next step, close the Mac. It must be disconnected from all devices that are connected. In the event that your MacBook has sufficient battery, you can take out the charger too. In the meantime, boosting your system could allow it to work. If this happens, you'll know that the problem was within the peripherals and not in your system.