Stomachache could be due to side effect of medicine you took for headache or throat infection.
Next Steps
You should get ENT specialist's opinion for throat pain
for stomachache, take antacid or PPI (eg Pantoprazole, Esomaprazole) after consulting your doctor