Previously Rooted Nexus 5 is not recognized via USB after stock 5.0 OTA update
Perhaps it is issue of USB connector. Most of the times due to dust it does not get proper contacts on USB pins and its not recognized over USB. Try to check that.