The distribution of the test statistic is the pattern of values it could be, including an indication of how likely those values are to occur.
A simulation is a way to explore random events, such as what some data or a test statistic could look like under certain assumptions. By observing many simulated outcomes, we can see what values are possible and the distribution of these possible values.
We want to know the distribution of what the test statistic could be if the null hypothesis were true.
To get an estimate of this, simulate many possible values of the test statistic under the assumption that the null hypothesis is true.
This is the empirical distribution of the test statistic under the null hypothesis.