Not sure about the pain and sex thing but the brown discharge could be bv - for this you would need to stop using fragrance soap down below and use non fragrance soap (also try not to use bubble bath).
About a week after I had my period I had sex then came straight back on, I was told this can...