How or where do you add widgets to WordPress blogs?

On wordpress blogs they give you free widgets to add to your site.But i want to add external widgets to my blog and iam not sure how to paste the widget code and where to add it.Do you paste under widgets or headers or in the main body of a post?