If you want to learn to play the guitar, you find a tutorial book, you learn the chords, the rhythms, the techniques and you practice, practice, practice. Sometimes its hard work. More often it's fun.
If you want to write songs, you write. Some are just play, with no real meaning; some songs express your heart. Both are worthwhile.
Some sound good and connect with others. Some don't. That's fine.
If you stop playing, if you stop writing you will get rusty. But you can pick it up again.