Ask you doctor forf a referral to a neurologist. A neurologist can give tyou an EMG test and determine whether you have neuropathy which usually affects the feet and lower legs. Since you did not take care of your diabetes for a long while it is quite possible you have neuropathy now. Having a lot of high blood sugar for a long period can cause many complications with diabetes and neuropathy is one of them. If you get your diabetes under good control and stop having frequent high blood sugar then your pain might get better or even completely stop. That assumes you have not already waited too long. Good luck with your legs.
Richard
Richard