The user who asked the question determines the best answer for their question. They can click any answer but usually they would select the highest-voted answer.
Admins, Moderators, Editors and Experts can also select best answers for other people's questions (you can turn that off if you want).