In a very simple camera "lens" there are two elements (in reality there are more).
There's a notion called "back-focus" which can mean two entirely different things in photography, but in lenses and bodies there's a distance from the rear element to the focus plane inside the camera (your camera body has a mark on it somewhere... it looks like a circle with a flat line drawn through it. That line on the body marks the position of the focus plane inside the camera.) "Back-focus" in this context is the distance from the rear-most element (which does not move) to the focusing plane (which also does not move.)
To focus the lens, the front-most element is moved nearer or farther -- you're changing the spacing between the front and rear elements. That alters the focus distance in front of the camera.
Ok... so that's the "simple" version. And for conceptual purposes, that's all you need to know.
The truth is, there are many more elements inside the lens and they move as groups. If you really had just ONE lens element, the image quality would be awful. Take a simple magnifying glass (single lens design) and hold it over a newspaper. Notice the text in the center is clear and magnified, but near the edges the text is distorted. Worse still... even though the newsprint is just "black and white" if you look at the text near the edges, you'll notice red and blue color 'fringing' on your text. Red on one side, blue on the other (if it's black text on a white page then I think you get blue fringing on the "inside" edges of the letters (closest to the center of the lens) and red on the "outside" edges (farthest from center). But if you had white text on a black page you'd get the opposite.)
That color fringing is called "chromatic aberration" (or "CA" for short). It's caused by the fact that different wavelengths of light bend by different amounts as they go through glass at an angle. The edges of the glass lens behave like a prism... splitting light into a rainbow. Great for pretty effects in the sky... really bad for photos. The CA technically means that the different wavelengths are coming to focus at a different distance. Blue is easiest to bend ... so it wants to focus nearer. Long waves (reds) bend less... so they come to focus farther away. You get the colors (even from black & white newsprint) because "white" is really all the other colors combined.
So you know when they say "you can't unscramble an egg"? Well... it may not work with eggs, but you CAN unscramble light (pull it apart again even though it was previously blended together.) For photographic purposes, we don't want to pull it apart.
One day, some folks realized that various configurations of extra elements could correct (or at least partially correct) for these problems. Lenses evolved. Modern lenses may even have multiple focusing groups and it gets more complicated if it's a zoom lens.
More elements are "better" in that they can more finely tweak the light to produce an optimum image, but "worse" in that each time light has to pass through a glass-to-air or air-to-glass transition there is yet another opportunity for reflection, loss of light, ghosting, flaring, and other horrors. So the number of elements is a trade-off game.
Oh... and the other definition of "back focus"... if you focus your camera on your subject's eyes (at least you *think* you focused on your subject's eyes) but in reality their ears are more sharply focused and their eyes are a bit soft... that's also called "back focus". It is, of course, completely different and unrelated to the distance from the rear-most element to the focus plane so you have to watch the context when you see people use that term.
You can read some history here:
LensRentals.com - From Petzval?s Sum to Abbe?s Number
(Roger Cicala at LensRentals writes some really great blog articles.)