Can i sell a car if i dont have updated registration and insurance?

when selling a car does the car have to be registered and does it need to have car insurance?