Use the vertical line test. If it is at all possible to draw a single vertical line through more than one point on the relation curve, then the relation is not a function. This is because a function is only possible when any x input leads to exactly one y output.
So that's why graphs 1,2,3 are not functions, while graphs 4,5,6 are functions.