A melody can be defined by it's contour or shape.
The shape of a melody can take many forms, such as conjunct or disjunct or mixed, ascending or descending or combinations of both. Melodies can have sequences and repetition of melodic ideas, or ostinato patterns.
Conjunct Motion:
Conjunct motion has primarily step-wise, or scale-based movement between notes.
Disjunct Motion:
Disjunct motion melodies have more distances, or larger intervals between notes:
Ascending Melody:
Descending Melody:
Contour
Wavelike:
Arch-Shaped Melody
Learn about Sequences (with audio examples)
http://musictheoryprof.com/2015/11/whats-a-sequence/
Sequence Phrase Example:
Ostinato: (repeating sections/motives)