Hello and welcome to HCM,
Lack of sexual desire in a woman can be functional or organic.
In simple words, lack of libido can be due to
hormonal imbalance or due to person's preference.
Since, you have a child with your wife, this means that there is no abnormality in genital organs and there is no hormonal abnormality also.
Pain during or after sexual activity is a normal phenomenon and this may not have any relationship with previous relation.
In my opinion, you need to communicate with your wife and discuss with her for the lack in interest in sexual activity.
In case that is not helpful, you may consult a marriage counselor or a sex counselor.
Your wife may have a different preference and this may be a reason for her lack of interest in sexual activity with you.
Professional help may be sought for.
Thanks and take care
Dr Shailja Puri