Rama can mean name, while sama and san are similar to Mr/Ms, it's more formal and is usually used to adress someone while showing respect.