I just bought my car.the previous owner has confused something the car does not give any warning messages

I guess the lcm was changed because the vin and mileage was different I fixed its but again I can't get an error message although it is the same as the vin and the mileage.