Hi Peter,
If the AOI of the main wing is greater than the AOI of the stabiliser, the wing will reach it's critical angle of attack and stall first as the stabiliser's angle of attack will be lower due to a lower AOI presented to the airflow.
As the wing stalls first, the aircraft will usually pitch nose down as the stabiliser is still producing lift for the reason given above. As the aircraft pitches down, the wing angle of attack is reduced and it unstalls.
That's my take anyway!