The best way to learn anything is by looking at an example of it. Let's take a look at the following sequence diagram of a simple restaurant system:
Here, we can see that a customer first asks for the menu from the UI. The UI passes the request to the Controller and then the Controller passes the request to the Manager. The Manager gets the menu and responds to the Controller. The Controller responds to the UI and the UI displays the menu in the display.
After the Customer chooses an item, the order goes step by step to the Manager. The Manager calls another method to prepare the food and sends a response to ...