Header and footer content are owned by the page style. This allows to have different ones aver different page styles.
Remember that header and footer must first be enabled in the corresponding tabs of the page style configuration dialog.
There is no provision to automatically “associate” page styles.
Just copy contents from one header to another one, just like you would do with ordinary text.
Note: it is much easier to see where the header, footer and main area are located when you enable View
>Text Boundaries
. Only the limits of the are where the cursor presently is are shown. You can deduce that the header/footer is outside the main text boundary line. Click in the header area and the boundary will be shown.
Enable also View
>Formatting Marks
. Empty header/footer will show up as blue pilcrow signs. You can the spot your header and footer.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.