The connection of the 3 Brochos of Birkas hamazon is that eating is like putting fuel in the tank but then where do you go ?
We link the thanks for food to serving Hashem with Torah & yerusholayim so that we show the purpose of eating is to serve Hashem. Its all one entity.
Now may be a good time for a gem of Torah study.
www.GemsofTorah.com