Thank you for the question.you can get one test called serum b-hCG .If it is elevated go for repeat serum b-hCG after 48hours.this will help you in ruling out pregnancy
.Meanwhile I suggest one ultrasound
abdomen and pelvis which will help to find out the cause for your pain.it could be a cause related to uterus and ovaries or it could be non gynaecological also.
Also,it is important to get a physical examination done by a gynaecologist.
You can use anti spasmodics like Buscopan
and pain relieving medication like Ultracet
for your symptoms.Hope you find this answer helpful