If vaccines are soo terrible than explain to me why both Smallpox and Polio are no longer a threat?

Read something on history, vaccines wiped out many diseases such as Smallpox and Polio!!!
If vaccines are soo terrible than explain to me why both Smallpox and Polio are no longer a threat?
Post Opinion