You are dealing with different concepts. Entropy reefers to the disorder on the system. In the other hand, the energy concerns to the energy contained in the system, momentum, potential energy, and all involving the microscopic scale, the momentum of every single molecule, rotating and colliding with each other. Every systems tends to a state of equilibrium, and that state is characterized by a maximum on entropy, or a minimum in the energy. That is, you can describe the state of the system using the entropy, or the energy. There are actually other potentials, but I think these two are the most important. You can describe the state of the system in the energy form, this could be over an equation of the form U=U(S,V,N), it's a function of the entropy S, the volume, and the mole number N. If you invert this function, you can get the state function with the entropy as the dependent variable, so you get S=S(U,V,N).
The first principle it's never violated. It is described in the first postulate of thermodynamics, which is the conservation of energy postulate. The entropy is treated on the second postulate.