“Sometimes you realize that you have to shake yourself out of something and you’re the only person that’s going to fix it for yourself,” Jonas said of the song