Question: does 2b come back to life?
Answer: As for his memories, they could have remained in his body or probably backed up somewhere as in Endings A and B we see how, after 2B kills a corrupted 9S, he comes back with his current memories by backing up it to a machine lifeform.