A county lines gang who distributed Class A drugs have been locked up after a mobile phone was the reason for their downfall.