I have Modem called
TP-LINK TD-8817 USB
The problem Who when I log to ubuntu the modem don't run but if I want to run it I should remove the wire of the modem and enter it again
I have to do this every-time I want to run the Internet.
Your TD-8817 modem can also be connected with the Ethernet network adapter of your PC. See also this answer on DSL connections. It is best advice to do so as connecting by USB can only be done with (usually proprietary) drivers and network needs to be bridged to the USB driver. The problem you encounter may likely come from the USB driver that only allows you to connect after re-plugging your device.
For your modem use this socket to connect with an Ethernet cat5 patch cable to the LAN port on your computer:
Once your modem is connected with the Ethernet port all traffic can be handled by default Ubuntu applications withouth the need to install any additional drivers. You will be able to autoconnect to the modem in network manager settings:
Edit your eth0 settings by ticking Connect automatically in order to connect everytime you turn on your PC:
In case you need to stick to USB connection then the option to autoconnect may depend your USB driver's capabilities.