How do you say why thank you sir in Brazilian?

Obrigado (if you are male), obrigada (if you are female). Senhor (sir) is only ever used when you are talking to an elder (someone old enough to look like a guaranty kind of elder) or in very formal situations.