Tomoki Iwata's sensational strike on debut saw Birmingham City move into a 3-1 lead in the second half against Wrexham.