Thank you for asking your query.
The symptoms you have described above are consistent with an intermittent iliac artery occlusion ( or dynamic iliac artery occlusion) . This is a rare condition and I am NOT saying you have got this, but it’s wise to rule out this condition. There could be an abdominal aorta involvement, but you cannot say for sure.
Iliac arteries are two continuous arteries directly from aorta. Any block in them can cause above symptoms and claudication. The artery supply to penis is from these arteries, so this might explain the erectile problems. This is some time called Leriche's syndrome. When there is an incomplete block associated with increased demand as in exercise, exercise including bending of the hip this can increase the blockade. Regarding the symptom association with smoking, it could be a random association. Long term smoking is a risk factor for this condition.
You need to abstain from sever exertion and heavy physical activity. You should consult a Vascular Surgeon. A Doppler test will give more information in this regard.
Please note I have formed my opinion on the limited information provided by you without a Physical examination.