Right now I'm listening to the band The B-52's, but that's not what I'm going to write about right now.
I'm going to write about song writing as I understand it. So if you wanna write music check this out. There's a chance it'll be useful.
I like to make many of my songs songs start with a theme or an idea. Once that center point is established song writing comes together very well. The way I perform music improvisation is a very important piece of the puzzle. I jam out on various instruments and try any sound idea that takes my fancy. In fact, I like to think a lot of the time the music sort of writes itself. Just try sitting at a piano some day (whether you play or not). I promise you that if you sit there and play long enough, you'll be able to play one of the following songs: Ode To Joy, Jingle Bells, Mary Had A Little Lamb. I say this to illustrate that once you build familiarity and comfort with an instrument, you'd be surprised what you can do.
Stories are often made into music. And it is obvious why. Stories and music share a lot: feelings, thoughts, plot, ideas. Having a story in mind when working on a song can be very helpful and teach the composer a lot about musicianship.
Most importantly: the RIGHT way to write music is to create an energy and sound that you deeply enjoy. Write music for YOU and, hell, SOMEBODY'S gotta like it, right!