Roles are nothing, but the servers are layman terms. Servers are managed, load-balanced, platform as a Service virtual machines that work together to achieve a common goal.
These roles are divided into three parts
Web Role: It is used to deploy a website, using the languages supported by the IIS platform (like PHP, .NET, etc.). It was configured and customized to run web applications.
Worker Role: It helps the web role to execute background processes, unlike the web Role, which is used to deploy the website.
VM Role: It can be used by a user to schedule tasks and other windows services. We can use the VM role to customize the machine on which the web and worker role is running.