The phrase "some gift" is not correct.
If it is only one gift, you can say "When their birthdays are coming, I will prepare a gift."
If it is more than one gift, you should say "When their birthdays are coming, I will prepare some gifts"
Hope this helps!