The lines and spaces on a staff represent different pitches. Notes are placed either on a line or in a space to indicate their specific pitch. The higher the note is on the staff, the higher its pitch, and vice versa.