how to create text in game object position?

Go to GameObject->Create Other->GUIText. Then drag it onto a GameObject to make it a child of t]he GameObject. Finally, click the gear on the Transform component of the new GUIText and select Reset. It will be set to 0, 0, 0 relative to its parent, so it will have the same position as its parent GameObject.