I would recommend reading other wikiHow articles on how to compose and record before writing your own song. If you're able to pick out tunes on an instrument such as the guitar or piano, then you can easily record these on a device such as your smartphone without having knowledge of how to write music.