Does it ever get in gear? If not, the shift linkage is probably broken, or the bolt connecting the shift linkage to the transmission shift shaft has come loose/off. Look under the car where the shift linkage connects to the transmission, have someone shifting it (E brake on, engine off!!), and see if the transmission shift shaft is moving. If it isn't, check the steering column end to make sure it is connected.
RepairPal Certified shops can diagnose and repair your 1998 GMC Yukon. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.