"Yajna" first meant the Vedic fire sacrifice: an offering into the fire, done for the gods and for the good of the world. The Gita widens it. In chapter 4 it lists many kinds of yajna: offering your breath, your study, your self-control, your goods (4.25–30). Here it means action done as an offering, not for yourself alone.
Readers differ on the details. Some take yajna here as the prescribed rites. Shankara, an 8th-century commentator, follows an old Vedic saying that "yajna is Vishnu" and reads it as action done for God. Many readers today take it as work done for something larger than yourself. All agree on the contrast: action done only for yourself binds; action done as an offering frees.
"Bound" means tied to the cycle of wanting, getting, fearing and wanting again. Work done grabbing for a result keeps you in that loop. Work done as an offering, "mukta-sanga", free of clinging, lets you act fully without being caught.
This is Krishna's way out of Arjuna's dilemma. You don't escape action's chains by stopping, which is impossible. You escape them by changing what the action is for.