pain during sex

Today during sex, I had a pain in my abdomen. I've been gassy today so I want to know your girls opinions on why I had that pain during sex. Help!!