That is an excellent question and one that is best answered by your primary care doctor
or a physician specializing in sleep or psychiatry. It is difficult to ascertain the exact cause of your symptoms based upon the limited history you have provided as there is no information related to your age, gender, or comorbidities and this is important to elucidate the cause of your problem. It is also unclear if you have had any life events that have caused you to have increased stress in your life as this could be causing you anxiety
which could be manifesting itself as some of your symptoms. Sweating, heart racing, difficulty sleeping and chest discomfort can all be signs of an anxiety attack or increased anxiety. These same symptoms could also be related to a heart condition depending on your age and your comorbidities and for this reason it is important that you are evaluated by a doctor so he or she can decide what the cause is and rule out some of the more serious issues that you could be having. In the meanwhile, consider decreasing caffeine intake, meditation to calm yourself, and exercising to decrease your stress levels.