MS Word insert table of contents

Pre req: All your headings should have the Heading 1 style and sub heading Heading 2 or 3 style applied it them. 

Next go to Insert>Index and Tables>Table of Content (tab) click ok.