How can I convert screen coordinates to world position?

How its set up in your picture, when you tap, its going to set the spawned ball_bp to coords X-‘0’,Y-‘value of touched location x’, Z- ‘value of touch location y’.

Is this a 2d or a 3d game? I have a couple ideas that may work but I need to know more.