A function is a rule that turns each input into one output. Pick a rule, slide the input x, and watch the point ride along its curve.
Put a number in, get a number out. Slide the input and watch the point ride along the curve.
Every input has exactly one output. The curve is just a picture of all those input-output pairs at once.