Quantum Transport in Wires and Nanoelectromechanical Systems