With melodies and harmonies, unless you have decent understanding of theory and/or are a instrumentalist of some sort, it'll come easier to you by just messing around. A lot of people come up with melodies and chords by playing in random notes, moving them around, and eventually they find something they like.
One thing you could note is what notes are in the key of your song, then messing with those notes specifically. That way, you know the notes you're playing will all sound good