The Moment Generating function is a Mathematical tool that can establish a relation between the Moment and the PDF of a Random variable.
Mathematically
Note: If all the moments of a Random variable is known, then the PDF of a Random variable can be calculated using the moment generating function. However the relation is complicated, hence omitted here.