From a scientific perspective, AI is the name of the general field that studies systems that try to exhibit intelligent behavior, and ML is a strict subset of that - it's the one that's currently more popular, but the study of, for example, planning algorithms or logic reasoning algorithms are other subfields of AI that have nothing to do with ML.