That adds page numbers, it does not restart the numbering sequence.
Doing that requires a Section break before page 4.
You need to know the Word object model for page numbering before you start trying to code it.
Try creating a scratch document and record a macro that restarts the numbering using the Format Page Numbers dialog and look at the code.

These talk about what is going on in Word.
Numbering Front Matter by Suzanne Barnhill, MVP
Page Numbers in Word 2007-2021 (365)

Then look at your recorded code in the vba editor to get an idea of the Word objects and methods involved.
How to Modify a Recorded Macro by Jay Freedman