In Paragraphs 81 and 82 of REDEMPTOR HOMINIS by Pope John Paul II, the Pope sees the importance of receiving the Eucharist in a state of grace, by saying that when one is not pure, "...partaking of the Eucharist would lack its full redeeming effectiveness...". 

To understand more about the importance of receiving the Eucharist in a state of grace, read the following:

To help us receive the full redeeming effectiveness of the Eucharist, we need to become more pure by frequenting the Sacrament of Penance regularly. For information about the Sacrament of Penance, and to learn how to make a good confession, check out the following: