Bad sex

You have been with you boyfriend for about 4 months and the sex is just bad but the foreplay is amazing I don't know what to do?