State any two ways by which infectious diseases can be controlled.