Burning and sore/painful vagina

Whenever I would masterbate, and I would orgasm my vagina would start to burn and it would be painful too like a sore pain when you had rough sex. I also do have sex with my bf and I would always have to tell to start off slow because when he puts it in, it's painful and it feels uncomfortable. What can these problems be?