According to research on the effect of music listening on work performance, music can indeed help your brain work better. But it depends what you are listening to.
Classical music, especially baroque, can increased mood and concentration – see Bach, Vivaldi, and Handel 👉example
Not really music, but nature sounds can increase cognitive function and concentration – rain, water, etc. 👉 example
Epic music can inspire you if you’re feeling unmotivated 👉 example
Ambient music can reduce stress (I’m not a huge fan, so no example 🤷🏻♂️😂)
My Own Favs
I also like some of the Apple Music concentration playlists such as Swift Concentration.
And even though it breaks some of the rules above, I just find KUTX relaxing.
Also, Miles Davis. And the Isle of Dogs soundtrack.
What Doesn’t Work
Not surprisingly, complex musical structure and lyrics don’t help. In fact, they make it harder for you brain to focus. (*Still, I can work to Johny Cash music, probably because it’s so familiar.)
Also, any music may hinder the especially difficult tasks.
And you have to be in the habit of listening to music to make it helpful. If you only do it sometimes, it doesn’t help.