Imagine a duck bobbing on a pond twice a second, sending out a ripple each time. If the duck sits still, the ripples are evenly spaced circles. Now the duck paddles forward. Each new ripple starts from a point a little ahead of the last one, so the circles bunch up in front and spread out behind. A frog in front meets crests more often than twice a second; a frog behind meets them less often. The duck's bobbing has not changed at all.
Sound works the same way. A 700 Hz siren on an ambulance driving toward you at 20 m/s, with sound travelling at 343 m/s, is heard at f′=700×343−20343≈743 Hz. Once it passes and drives away, you hear 700×343+20343≈661 Hz. The drop you notice as it goes by is from about 743 Hz to 661 Hz, while the siren plays 700 Hz throughout. If you move instead of the source, the formula changes a little, because you run into the crests rather than having them squeezed, but closing in still raises the frequency.
A sound getting louder is a different effect. An approaching car gets louder because you are getting closer and more of its sound power reaches you. The Doppler effect changes only the frequency, and it depends on speed, not distance: a car coming straight at you at a steady speed has a steady, raised pitch that grows louder, and the pitch drops only at the moment it passes.
Think of it like this. Picture a tennis-ball machine firing one ball every second while rolling toward you: the balls arrive closer together than one a second, because each starts its trip from nearer. Rolling away, they arrive spread out, yet the firing rate never changed. Unlike the balls, sound does not go faster when its source moves; its speed is set by the air.
Core idea. Motion between a source and an observer changes how often crests arrive, not how often they are made: approaching raises the received frequency, receding lowers it, and the size of the shift measures the speed.