If an acid is monobasic, like HCl, it has one hydrogen atom to donate to a base in an acid-base reaction. Therefore, when NaOH and HCl are reacted, the mole ratio is 1:1, as NaOH can accept one hydrogen atom to form H2O and NaCl.
If an acid is dibasic, like H2SO4, it can donate two hydrogen atoms. Since NaOH can only accept one per molecule, two NaOH molecules are required, hence the mole ratio is 2(NaOH):1(H2SO4)
If the acid is tribasic, or triprotic, like H3PO4, it donates three hydrogen atoms. Therefore we would need three molecules of NaOH for every molecule of H2SO4, giving us a mole ratio of 3(NaOH):1(H3PO4).
Most of the time you won't need to know this, all you'll have to do is write a balanced equation and it will make itself obvious.