Sharp pain

Help me out ladies once in a while I will get some sharp pain on my lower pelvic area and it will go all the way to my anal and it feels like there’s air trapped in there, does anyone know the cause? I mainly get it around my period not always but sometimes and also with certain sex positions! Help me out y’all