Vaginal spasms

I get vaginal spasms during sex or masterbation. What is causing it? It doesn’t hurt it just feels weird.