Hi,
epidemic a widespread occurence of a disease, or occasionally of some other undesirable thing eg an epidemic of bad grammar
pandemic The prefix 'pan' refers to 'all' (from Greek). A pandemic is a big epidemic, typically involving the entire world or perhaps a whole country. Unlike 'epidemic', 'pandemic' is only used to refer to diseases.
Best wishes, Clive