【Contagious】 refers to diseases spread through physical contact.
【Infectious】 refers to diseases spread through air, water, etc.
Note: In figurative use, these words can be synonymous.