It is unlikely to be ectopic pregnancy
if you just had the periods.
Regarding kidney stones you need to get an ultrasound
and x-ray of kidney , ureter, bladder area. Also get your urine examined for any infection there.
Till that time you can take an analgesic
antispasmodic medicine like meftal spas
and drink lot of liquids.