In most cases, you will need a special type of visa known as a work permit. Some countries even require work permits for unpaid internships or volunteering. Working for pay without a work permit is usually illegal and may put you at risk of deportation. Special programs for working, interning and volunteering abroad can usually help arrange for a work permit.
