Your question is confusing to me. If you whole iPhone will not power ON and and will not work unless it is connected to power source, then most likely your iPhone battery is faulty and needs replacement. If only a touch problem that is very unusual while not connected to charger.
This site contains user submitted content, comments and opinions and is for informational purposes only.
Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site.