When you remove a team member who still has open tasks, the Remove Team Member dialog shows how many they have and asks you to pick a team member to take them. The tasks move once the member is removed.
Completed tasks are not moved. They still show who did them.