What’s happening????!!

Aright so my next period is supposed to come in 5 days but I’m having sore boobs, back aces, a light pain in my side and then earlier today I saw this brown discharge but then it stopped and now I’m getting this white king of discharge kind like mucus can anyone please explain to me what’s happening I’m getting very stressed and annoyed I haven’t really been doing sexually activity