Welcome to Android Central! How are you playing the music -- using an music app, or the browser? It's normal for media playback from the browser to stop when the phone sleeps, since the browser isn't designed to continue playing media in the background. Use a music app instead.