Why does my speaker power up an die out

I turn my speaker on, an it stays on for a second an then it powers off an during this process its still plugged into the outlet

But if i unplug it from the outlet it does nothing at all

what can i do to fix this problem

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0