A class is something which usually gathers several of functions to structure up the code. A function is something to structure up your code so you can reuse it. Both these together provide a structure which helps decreasing redundancy and making coding alot easier.
It is very hard to explain briefly and I suggest you read this post when it comes to classes in php:
http://php.net/manual/en/language.oop5.php