How does sweating help your body control its internal temperature?

By sweating, your body removes some of the heat that is trapped in your body. When you sweat, water is released through the pores on your skin. The water/sweat that is on your skin contains some of the excess heat from inside your body. Eventually the sweat will evaporate or be wiped away, taking the excess heat with it.