how the current flows in the dugutal pins?

In that version your LEDs and resistors are doing nothing, as they are all at ground potential.

You should try to always draw circuit diagrams the right way up, supply at the top,
ground at the bottom, current flowing down, signals passing left to right where possible.
This makes it much quicker and easier to read diagrams once you've got used to the
conventions.