The first graph is a a function, because every vertical line crosses the line only once.
The second relation is not a function, because you're mapping multiple outputs for the same inputs.
The third relation is not a function, because again you're mapping multiple outputs for the same inputs 1 and 2.