What is the purpose of taxes, to raise money for governmental operations

What is the purpose of taxes, to raise money for governmental operations or is

to be a factor of social policy, or is it a combination, please explain?