Over-the-counter (OTC) medications like ibuprofen and acetaminophen can be effective for mild to moderate gynecological pain. They work by reducing inflammation and blocking pain signals. However, it's important to use these medications as directed to avoid potential side effects.