The energy grade line (EGL) represents the total energy head of flowing water in a pipe, accounting for velocity head, and illustrates how energy decreases due to friction and other losses. The hydraulic grade line (HGL) reflects the pressure available to the fluid and is always positioned one velocity head below the EGL. Both lines are crucial for understanding fluid flow dynamics and pressure variations in piping systems.