Apply Heading styles to your section titles
Place the cursor where you want the table of contents
Go to the References tab
Click Table of Contents
Choose an automatic table of contents style
Update the table of contents after making changes
Use Update Table to refresh page numbers and headings
