Stomach pain and back pain are signs of thousand problems. It’s not specific to pregnancy. Your test is negative, you got your periods, so you are not
pregnant. It’s possible you have pelvic infection. Do
beta hCG blood test if you still want to confirm.