Can I get iPhone messages through my Mac?
Messages.app on OS X can sync messages from iPhone your to the app. This only works when your phone is on the same Wi-Fi network. 

So if your phone is getting repaired, you will only receive iMessages (messages sent font an iPhone/iPad/Mac to another iPhone/iPad/Mac), and not SMS texts.