Here is a possible scenario for the wizard NPC:
The wizard is obsessed with gaining power and immortality. Through years of study, he has come to believe that transforming himself into a lich - an undead creature of great power - is the only way to truly transcend mortality. However, the path to becoming a lich requires the creation of a phylactery, an object that houses the lich's soul, as well as a potion of transformation that will turn the wizard's body into a skeletal undead form.
The wizard has spent decades researching the lost spells and alchemical formulas needed for this transformation. He is close to decoding the final pieces of the puzzle, but requires a few rare ingredients and components to complete the phylactery and potion. Once he has obtained these and performed the necessary rituals, he will gleefully drink the potion of transformation, his body decaying and rising again as a lich. As an immortal undead sorcerer, he will have power and time enough to hunt down every last scrap of arcane knowledge, no matter the cost to mortal life.
The wizard believes only by escaping the shackles of humanity can he achieve his full potential as a master of the arcane arts. He is willing to sacrifice his mortal form to gain the immortality and power he so desperately craves. His research has been a lifelong obsession, and now the final pieces are within his grasp...if the heroes do not stop him first.
How's that for the wizard's motivation and goal? I tried to pick a monster (the lich) that represents power, knowledge, and immortality - things that would drive an obsessive wizard. Please let me know if you would like me to modify or expand on any part of this scenario! I'd be happy to provide more details and hooks for using this NPC in your campaign.