A family of Microsoft word processing software products for creating web, email, and print documents.
If you are saying that you have created a TOC successfully and you then edited (the headings of) the document, you have to update the TOC. Click in it and press F9; if prompted, choose to update the whole table.
Did you read the article I linked to? It explains how TOCs work in Word.