Patience. Lots and lots of patience. Eventually it will learn. Also make sure to either run or walk with it to get rid of that energy.
You have to get him to burn off that energy my bro. Shepherds are notorious for having lots of pent up energy. Gotta walk him alot.
Gotta teach him obedience.