My samsung will not charge and the flash light for camera is on and it gets hot

Either the battery is going bad or another component is. I would suggest having it looked at and make sure you back up all your stuff to a computer of cloud account before the device goes completely.