Hi,
Resetting SMC could solve the problem.
How to reset the System Management Controller (SMC) on your Mac - Apple Support
Also see:macOS Sierra: If your computer screen goes black
If they don't work, as kappy say, you'd better make Genius Bar appointment or take your MacBook to Apple authorized service provider to check it up.