What does it mean when I plug in $0, 1, ..., n$ into a probability generating function?
What does a probability generating function tell me about the number I plugged in?
What does it mean when I plug in $0, 1, ..., n$ into a probability generating function?
What does a probability generating function tell me about the number I plugged in?
Probability generating functions have multiple desirable properties; however, they only work for discrete distributions, which belong to random variables that can only assume a finite or countably infinite number of values - e.g. $\{0,1,\dots,n\}.$ This explains the first part of your question.
Instead of going over all the properties of PGF's, let me just point out the feature that is easiest to appreciate:
Differentiating the PDF, and evaluating at zero gives you actual probabilities:
If we annotate the PGF as
$$ G(z)=\operatorname{E} (z^{X})=\sum_{x=0}^{\infty }p(x)z^{x},$$
with $p(x)$ corresponding to the probability mass function of $X$, you can find the probability of a particular outcome $X=k$ as:
$$ \Pr(X=k) = \frac{1}{k!}\frac{d^k \, G(z)}{dx^k} \vert_{z=0}=\frac{1}{k!}G^{(i)}(0).$$