To restore the 'Social' and 'Promotions' tabs in Gmail, go to Settings → Inbox, and check the boxes next to 'Social' and 'Promotions' under the Categories section.