Plant was pollinated too late in its life and is dying (brown calyxes) before it has the time to mature the seeds properly would be my guess according to the information provided, however, a picture or two would really have helped with giving a better suggestion.