my 2004 3500 has 2 codes they are p0500-no veh speed sensor signal . do i need a new speed sensor? the other is p2509-power data lost error,what do ineed to do with this one? 

Has the speedometer quit? If so then replace the sensor on the rear differential.