A family of Microsoft word processing software products for creating web, email, and print documents.
Your description doesn't tell us what is or isn't happening. Sometimes a screen shot may show your problem more clearly.
In Word, the Insert>Page Number command is a convenience. You can always open the header or footer, position the insertion point where you want the page number, then choose Insert>Quick Parts>Field and add a Page field. It does exactly the same thing.