This seems to be a condition called vaginismus.Vaginismus is a condition where there is involuntary tightness of the vagina during attempted intercourse. The tightness is actually caused by involuntary contractions of the pelvic floor muscles surrounding the vagina.it is an involuntary spasm of the muscles surrounding the vagina. The spasms close the vagina.The condition causes penetration to be difficult and painful, or even impossible.
You need vaginal dilation using plastic dilators,sex education and behavioral exercises.So I advice you to make an appointment with your gynecologist.
Hope this helped.