You shouldn't worry to much about stomach pains during pregnancy, but if they are unbearable pain you should go to the hospital and contact your care provider, because if something is wrong you want to get attention immediately.
I would advise immediate check up by your own doctor unless the pains have become unbearable then a hospital visit must be considered. If you have already had a hospital or doctors visit then following the advice of your doctor is essential but normal procedure with this is plenty of rest and in more serious cases complete bed rest.
If you are experiencing pain (other than morning sickness) call you doctor as soon as possible. In early pregnancy it can be a sign of an ectopic (tubal) pregnancy or misscarriage and in later pregnancy it can be pre-term labor.