are you trying to write a song like, the music to it, or the lyrics? cuz i always write something, sing a tune to it in my head, and put the guitar in according to that.... thats basically the easiest way.
if your just goin for music, just play a sweet progression. whatever- theres no real rules. just try not to make it sound too cliche.