An interval is simply the gap between two pitches. We name intervals by both quality (major, minor, perfect, diminished, augmented) and number (2nd, 3rd, 4th, 5th, etc.).
Intervals are the atoms of melody and harmony. Stack two thirds and you get a triad; stack eleven perfect fifths and you reach all twelve notes of the chromatic scale.