If you have a password set up on your device, unlock it first before connecting the USB cable, otherwise Ubuntu will not recognise it.