There is a slight difference between those sentences. For 'the drug can work on the illness' the intended meaning is probably that the drug can help treat the illness or that it can cure the illness, although this is not a very natural sounding sentence. 'The drug can have an influence on the illness' could be either positive or negative, it just means that the drug can affect the illness in some way, perhaps making it worse or perhaps better.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.