If I understand you correctly, you don't need a table inside the header. Here's what you need to do:
Select the header. Then, under Structure > Headers & Footers
, select Split List Row Cell
. That should make it match the columns in the list. Then, if you want to make a header cell span multiple cells in your list, you can select the header cells and merge them.