1.
used to show what sb intends to do in the future :
We're going to buy a house when we've saved enough money.
2.
used to show that sth is likely to happen very soon or in the future :
I think I'm going to faint.
If the drought continues there's going to be a famine.