This can be very complicated but I will give you the broad overview and let me know if it needs to be more detailed!
Sun > plants
Plants use the energy of the sun to make glucose
glucose > humans
Humans consume glucose (often by directly consuming the plant) completes the path of the sun's energy to us as plants packed that energy into the glucose
Hope this helped!