A scale is the notes of an octave laid out in order. The major scale follows W-W-H-W-W-W-H, the natural minor W-H-W-W-H-W-W. Once the scale is clear, the key, the key signature and the chords all start to make sense.
A scale is the notes of an octave arranged from low to high. Every step between two neighbouring notes is a whole tone or a half tone, and changing that order gives a different scale. A scale does two jobs: it supplies the notes a melody may use, and it ranks them into a stable hierarchy - which note feels like home and which notes pull towards it. Asking what key a song is in really means asking which tonic it centres on and which scale it is built from.

The major scale uses whole, whole, half, whole, whole, whole, half. Starting on C we get C-D-E-F-G-A-B-C: C to D is a whole tone, D to E a whole tone, E to F a half tone, F to G a whole tone, G to A a whole tone, A to B a whole tone and B to C a half tone. The two half steps fall between degrees 3-4 and 7-8, and that placement is what makes a major scale sound bright and open.
The natural minor scale uses whole, half, whole, whole, half, whole, whole. Starting on A we get A-B-C-D-E-F-G-A. Lower the 3rd, 6th and 7th degrees of a major scale by a half step and you have the natural minor on the same tonic - which is why the same tune turns darker in minor. Two common variants: harmonic minor raises the 7th degree, while melodic minor raises the 6th and 7th going up and restores them coming down.

The seven notes of a scale are called scale degrees and numbered 1 to 7. Degree 1 is the tonic, the most stable note; degree 5 is the dominant, the strongest support for the tonic; degree 7 in a natural major scale is the leading tone, a half step below the tonic and audibly pulling back to it. Numbering by degree is more portable than note names: change the key and degree 5 is still the dominant.
The key signature sits at the start of the staff and uses sharps or flats to declare the key: one sharp is G major (E minor), two sharps D major (B minor), one flat F major (D minor), two flats B flat major (G minor). Count the accidentals and you can name the scale; learn the scale and you can read its signature at sight.

In melody the scale defines the notes available, and almost every pop melody stays inside its scale. In harmony the chords are stacked from scale degrees - tonic, dominant and subdominant chords all grow out of the scale. For improvisation and ear training, knowing the scale lets you judge the key and direction of a tune as you hear it.
A sensible practice order: C major over one octave, then A minor over one octave, then round the circle of fifths through G, D, F and B flat major, and finally add harmonic and melodic minor. Write the key signature every time you practise a scale and the two get learned together.
Is a scale the same thing as a key?
Not quite. A scale is an ordering of notes; a key is the note a piece gravitates around. The same key signature can carry a major scale, a natural minor scale or a harmonic minor scale, so naming a key means naming both the tonic and the scale type.
An octave has twelve semitones, so why does a scale have only seven notes?
The twelve semitones are all the pitches equal temperament offers; the seven degrees are a selection from them. The eighth note is the tonic an octave higher, which is why a scale repeats endlessly.
Why do major and minor scales sound different?
Degree 3 is the key. In major it sits a half step higher than in minor, giving a major third above the tonic and a bright colour; minor has a minor third and sounds darker. The differences at degrees 6 and 7 reinforce it.
How many minor scales are there?
Three you will meet constantly: natural minor (the plain pattern), harmonic minor (7th degree raised, common in classical and pop) and melodic minor (6th and 7th raised ascending, restored descending).
How many scales does a beginner need?
Start with C major and A minor over one octave, then extend around the circle of fifths four keys in each direction, sharp side and flat side. That covers most everyday keys; add harmonic minor once natural minor feels secure.