It appears that you got pregnant after your 21 June period, and then had some bleeding 22 July for 5 days. Now you're having pain in the right and left lower abdomen.
It's difficult to know whether you may have had a miscarriage, may have a normal pregnancy, or you may have an ectopic.
I would recommend that you see an OB/GYN doctor soon. An ultrasound will help to clarify the situation. If a pregnancy is seen inside the uterus, that rules out ectopic.
If a heart beat is seen, that means a normal pregnancy.
If nothing is seen in the uterus, then it could be an ectopic or that you've had a miscarriage. The doctor will then have to figure out which.