Welcome to HCM,
If you were taking oral contraceptive
pill regularly on same time every day till 14th July, chance of pregnancy
due to unprotected sex on 5th July are very low.
Bleeding due to Implantation
is very light, thus bleeding you had on 26 July can't be due to it. It seems to be withdrawal bleeding due to discontinuation of pill. Thus chance of pregnancy is not present.
Cramps can occur just before next period and bloating
can be due to indigestion
You should get your pregnancy test done and consult a Gynecologist for examination.
Hope you found my response to your query informative and helpful.
With good wishes,
Dr.Chandra Shekhar Sharma