A function is a relation where there is only one output for every input. In other words for every x value, there is only one y value.
Example : Multiply by 3 is a very simple function.
Input : 0 Output : 0
Input : 1 Output : 3
Input : 2 Output : 6
Input : 3 Output :9
And so on!
Hope this helps!