EDIT: As I see in the first answer, underline is the wrong word. I want a line under the section heading, separating the heading from the following text.
You can do this with the \sectionrule command in the sectsty package.
\sectionrule