is very common - 25% of women will experience it at some point in time.
There's nothing you did to cause it but there are certainly things to do to improve your situation. First, get a complete and thorough gyn exam to rule out infections, anatomy issues or hormonal problems. After that, a specialist in sexual therapy may be helpful. Most of all, keep talking to your partner.