Chosen Solution

why can’t i turn my phone off. I have a iphone 4s. Also the phone is warm

Bit more info would help if you want a more accurate answer.. Was it dropped Is the screen froze Did something happen

Maybe there is a short in the iPhone charging port. Clean iPhone charging port very well with toothbrush and isopropyl alcohol.

If you can’t turn your phone off try going to settings and restarting your phone. My brother had the same problem and when he did it worked