Hello Carlens J,
Thanks for visiting Apple Support Communities.
It sounds like your MacBook Pro does not wake from sleep, and shuts down when you try to wake it.
Try these troubleshooting steps to remedy the situation, or if your Mac is currently not powering on:
OS X: When your Mac doesn't sleep or wake - Apple Support
The System Management Controller (SMC) is involved in managing power on your computer. Reset the SMC on your Mac if you are having difficulty sleeping or waking your computer.
Nonvolatile RAM (NVRAM)/Parameter RAM (PRAM) stores some power-related settings.Try resetting NVRAM/PRAM if you are having difficulty sleeping or waking your computer.
Some external devices can prevent your computer from sleeping. Try disconnecting items other than your Apple keyboard or mouse from the built-in USB, Thunderbolt and Firewire ports on your Mac. If this resolves the issue, try reconnecting your external devices one at a time until you find the device preventing sleep or wake. Check the documentation that came with the device, or contact the device manufacturer for more information.
Check to see if the issue still occurs when the computer is started in Safe Mode. If this resolves the issue, it could be related to a third party software item such as:
Best Regards,
Jeremy