The electric power P is given by
P=l2R
The resistance of the heating element is very high. A large amount of heat generates in the heating element and it glows hot. The resistance of connecting cord is very low. Thus, negligible heat generates in the connecting cord and it does not glow.