Not every PMF has an expectation, it does when it is absolutely summable.
Definition: A discrete random variable X is absolutely summable if E[∣X∣]=∑x∈X(Ω)∣x∣⋅pX(x)<∞
Most of the random variables we use in practice are absolutely summable.