Welcome To HealthcareMagic forum,
You probably are suffering from ANDROGENTIC ALOPECIA
,common type of patterned hair loss(as you said it is only on two sides).Even fever or any chronic illness can lead to hair loss usually after 3 months .You can first try minoxidil
sol 5% topically directly applied to scalp.Along with this there are medicines like finestride 1 mg & biotin which are help ful .Before taking this you should be under a regular guidance of a dermatologist
.These are very effective medicine but has to be taken for long time.In case you have already lost hair and are suffering from baldness
then you can go for hair transplantation
. You can get details in my website( www.apollobsr.com ..dermatology section) .Improve your diet with green leafy veg, fresh fruits, plenty of water, pulses, high protein diet, avoid items with high sugar content like sweets & chocolates, less of Chinese foods, less of pizza & burgers ,more of milk & ghee, dry fruits . Good sleep also has a important role to play .