In a school, every student has their own locker, and no two students share one. Give the office a locker number and they can tell you exactly whose it is. That is a one-to-one mapping: different students always go to different lockers. Compare favourite sports: many students pick football, so knowing someone picked football does not tell you who they are.
With numbers, f(x)=3x−2 is one-to-one. The inputs 1, 2, 3 give 1, 4, 7, and since every step adds 3, the outputs never repeat. On a graph, a horizontal line at any height crosses this line exactly once. The function f(x)=x2 is different: 2 and −2 both give 4, so the horizontal line y=4 crosses the parabola twice.
One-to-one is easy to confuse with being a function, because both are about 'one'. A function needs one output for each input, checked with vertical lines. One-to-one adds the reverse: one input for each output that is used, checked with horizontal lines. So x2 is a function but not one-to-one, while 3x−2 is both.
Think of it like this. A one-to-one function is like assigned seats on a plane: every passenger has their own seat, so the seat number tells you exactly who should be sitting there. If two passengers were booked into seat 14C, the seat number would no longer identify one person, and the mapping would not be one-to-one.
Core idea. A one-to-one function never lets two distinct inputs share the same output.