Conscience

As part of my psychology studies in college I recently heard a lecture on the relationship between the conscience and the ego. Is there a Jewish view of these topics? Are the two concepts contradictory or one in the same?