Hi and welcome to the forum
Livebearers like guppies, mollies, swordtails & platies are regularly infected with gill flukes and intestinal worms. If the fish are eating well, getting fatter but not giving birth after a couple of months, then intestinal worms is the most likely cause. Fish can become heavily infested with worms and look like they are pregnant, but they are actually full of worms.
You can use Praziquantel to treat tapeworm and gill flukes. And Levamisole to treat thread/ round worms.
Remove carbon from filters before treatment and increase aeration/ surface turbulence to maximise oxygen levels in the water.
You treat the fish once a week for 3-4 weeks. The first treatment will kill any worms in the fish. The second and third treatments kill any baby worms that hatch from eggs inside the fish's digestive tract.
You do a 75% water change and complete gravel clean 24-48 hours after treatment.
Treat every fish tank in the house at the same time.
Do not use the 2 medications together. If you want to treat both medications in a short space of time, use Praziquantel on day one. Do a 75% water change and gravel clean the substrate on day 2 & 3. Treat the tank with Levamisole on day 4 and do a 75% water change and gravel clean on day 5, 6 & 7 and then start with Praziquantel again on day 8.