Can someone possibly help me figure out what’s going on?

Whenever I turn the Xbox on it only is on for a few seconds and then shuts off. Sometimes it works normally but most of the time it does this. Anyone know what it might be?