iph 6+ after fall down got nut,what’s wrong

It makes the phone nut,for example if I begin to write via whatapp ,the phone write randomly buttons,and if I close the app,the phone return to open it and do some search,i tried to make reset all settings so the device alone type randomly letters, so what u think,could this be the flex cables that were loosing?