From your description, the intermittent pain from your upper left tooth and the inflammation and soreness on your tongue re two separate issues. It is extremely unlikely that either issue is related to your smoking. Please don't be anxious over your symptoms - neither sound serious.
The issue with your tooth should be evaluated by an endodontist. If you have had intermittent pain for several weeks or more it is possible that you will need a root canal to relieve the pain and be comfortable. Root canal is a simple procedure. A good endodontist can comfortably complete the procedure under local anesthetic in about one hour. It should be a piece of cake for you. There may be minor discomfort for a few days. Afterwards, the pain in your tooth should be gone.
There are many reasons why your tongue may be sore.It may be due to accidental "chewing" on your tongue - very common. Other typical reasons are acidic or spicy foods, heat burn, mechanical trauma, for example, vigorous brushing, and many more. But, even though the soreness is bothersome, it's very unlikely that this is at all serious. Many people who smoke are understandably anxious that there tongue issue is a sign of cancer. Your description does not resemble such a serious issue in any way.
I would suggest making an appointment for follow up and having your dentist discuss and perhaps schedule a root canal so that you can be comfortable again. While you are there, he can evaluate your tongue abd advise you specifically. You will be fine.
Please let me know if you need additional information to answe your question. If not a positive rating would be much appreciated - that's how we're paid for our work.