Those green pods are seed pods, and your plant probably thinks it no longer needs to make any more flowers since it’s already making seeds. Plants form flowers to reproduce. If you cut off the seed pods, your plants will then feel forced to flower and reproduce.