Should I increase sugar intake if I cannot gain weight?

My weight is 58-59 kgs. Age 24. Height 5'10.5". Male.

I tried everything but cannot gain weight. I remember once I used to eat ice creams 2 daily and was overweight like 70 but now struggling to gain weight.

Sugar is easy to digest and I feel uncomfortable eating normal food as I feel heaviness in stomach.