That's sounds like you had an army size smaller than those provinces' defences. To occupy a province you need to recruit an army big enough. For example, if you want to occupy Monterrey as USA you need to have 50 army points, because Monterrey has 50 defence points.
Edit: Also, maybe you ran out of gold.