I am learning about hypothesis testing and I have a conceptual confusion about the differences between a likelihood ratio test and the p-values derived from testing the likelihood of the data under the null. My confusion comes from the fact that the LRT employs the null and the alternative, whereas the typical approach employs just the null. Therefore, I have difficulty seeing how these approaches are the same.
Let's take a toy example where the null hypothesis is that the data is normally distributed with mean of 0 and variance of 1. Now if we have a data set of ${x_i}$, we can look at the mean of $x_i$ and look at how likely it is for the mean of these data points to deviate a certain amount from $0$.
In the likelihood ratio test, we would look at how likely the data is given that the actual mean is 0, and then we would look at how likely the data is given that the actual mean is equal to the empirical mean of the data set, and we would compare them.
How is it that two such different approaches are both appropriate for testing the null hypothesis? It seems that by not even considering the alternative hypothesis, the "likelihood under null hypothesis alone" approach seems to lack some key information.
Can you clarify this confusion? When is the LRT appropriate and more useful than simply testing the null hypothesis?