If you don't get anything with that code and the Envelope connection, try disconnecting the sound sensor board and connect A1 to ground (the ADC should read zero) and then to 5V (the ADC should read 1023).
Those experiments can should tell you if the problem is with the sound sensor, your Arduino, or your software.