Cause of suffering

Hello swamy, We suffer because of the papam that we have been doing for many janmas. But how do we know what papamĀ  we did (either in the current janma or previous janma) that is causing this suffering? Knowing it would help us avoid doing it again. Adien.