im not sure if you can buy ID’s in single player. your tractor beam is part of the ID item in your cargo hold, make sure you have one equiped or you wont have a tractor beam.
when you sell your ship it unmounts the ID and sells it, so when you buy a new ship you have to buy a new ID too