How internal states reshape neural computation