Thanks for writing your query.
Blood in stool
along with loose motions can be due to infection of the gastrointestinal tract.
This can result in pain of the abdomen.
You should get yourself examined by a medical professional and take antibiotic along with antiamoebic, probiotic
Also take electrolyte rich drinks to compensate for the loss of electrolytes in loose stools.
Pain during intercourse
can be due to different reasons. Commonest cause is that your body and mind are not relaxed during the act. But you should get yourself examined by a Gynaecologist to rule out any medical condition.
I hope this is useful to you.