British English here! Hi!
In England, we use it to mean three main things.
"Sir" meaning a formal title used to address people who have been knighted and a few other offices in our country, including OBE's (Order of the British Empire). There are several other titles "Sir" is used for including Baronet, & Knighthoods. To receive the title "Sir" to use in Britain, you must be a titled knight or hold another office connected to the word.
This is the case with Sir Richard Branson. He was included in the 1999 Honours List and formally knighted by Prince Charles in 2000.
Other examples of this kind of "Sir" are Sir Lewis Hamilton, Sir Sean Connery & Sir Bill Gates.
Another way you might use "Sir" is to refer to a male teacher. For example, you may be taught by Mr Brown, but you may call him sir instead of saying his name every time. ("Sir, can I have some help" or "Mr Brown, can I have some help" both work in this case).
The final way is if you were checking into a hotel or at a shop, the assistant (or manager) may refer to a male customer as sir. For example, "Would you like a bag, Sir?"
I hope this helps!