distinguish between the first law of thermodynamics energy and the second law of thermodynamics energy

Energy as defined in both laws has the same meaning. It is the laws that are different. The second law involves the direction of heat flow, the role of temperature and a quantity called entropy. The first law just says that total energy in conserved in a closed system