For thousands of years, before a single note was put to paper, musicians learned through improvisation and copying others. Developing your ear training skills is key to writing a convincing melody without knowing any music theory. Instead of learning the rules about which notes work together you’re going to find aural inspiration and then experiment to find which notes let you re-create the particular characteristics you want in your songs.