* she continued to despise David so much that she refused to be sexually intimate with him forevermore
* he reacted to her rejection by rejecting her sexually
* they continued to be intimate, but her barrenness was a judgment by God of her rejection of her husband
I’ll go with possibility #3.