There might be a hardware issue causing your computer to shut down. First, try unplugging your computer from the power source, wait for about 30 seconds, and then plug it back in. If it still doesn't turn on, you might need to open up your case and check if all the cables are properly connected, especially the ones related to the display and power supply. If you're not comfortable doing this, you should better seek help from a professional technician.