as you had miscarriage
in June, sometimes after miscarriage it will take sometime for regularization of periods, that may be reason for your delayed periods, and also you may experience some amount of pain after termination may be because of procedure, in case of D&C there is possibility for pelvic inflammatory disease
which may lead to sharp pains,
you can once undergo blood test
for pregnancy and ultrasound
to rule out the possibility, that can also detect the cause for your pain.