what is a series of notes that move upward, downward, or repeat

A series of notes that move upward or downward is called a scale. A series of notes that repeat is called a motif or a sequence.