Pain during intercourse

I have been sexually active for more than 2 years now. But recently i have started experiencing a wierd pain during intercourse. Also my vagina dries up very quickly which is a huge yurn off. Any reasons why this happens? And how to avoid it?