Why does it hurt?

Me and my boyfriend have been together for a while now but recently every time we have sex it really hurts! It's never been like this and I don't know if to be worried or just to leave it. It can be itchy afterwards as well 
Anyone had the same or know what's causing it??