A virus is a type of malware. Malware includes many different types of cyberthreats, including viruses, ransomware, adware, phishing scams, trojans, worms, rootkits, spyware, adware, and more.
These days, the terms “antivirus” and “anti-malware” are used interchangeably. The best antivirus brands all include anti-malware features in their software. In the past, some anti-malware providers offered more specialized protection against specific types of malware (like ransomware). However, there’s practically no difference anymore.