What could cause a car not to shift on 2004 Buick Century

The code came up vehicle speed sensor. we replaced that and it is still not shifting and the speedometer still is not working. changing that part did not change anything. any ideas?

Asked by for the 2004 Buick Century