Pain during sex

So I’ve been with my boyfriend for near enough 6 years and still to this day I’m having pain during sex.

I bearly enjoy any foreplay and sex because of the pain

Can anyone give me advice on this please