When an Echo goes silent, work through the simple checks first. Loud noise from a dishwasher, TV or fan can stop it hearing the wake word, so move it away from noise and walls. A solid red light (a red ring on speakers, a red bar with a mute icon on screens) means the microphones are off; press the microphone button on top or on the side to turn them back on.
A blue or cyan light is usually normal. It can mean Alexa is listening, thinking, starting up or installing an update, so give startup or an update time to finish before you assume it has frozen.
Still stuck? Restart it. Unplug a standard Echo or Echo Dot, wait 10 seconds and plug it back in. For an Echo Show or other screen model, wait 15 seconds. A restart doesn’t erase your settings, and it also helps with lag and freezing.
If Alexa wakes up but doesn’t answer, suspect Wi-Fi, since most of its processing happens in the cloud. Check that another device can get online, restart your router, then restart the Echo. Keeping the speaker within 30 feet of the router and away from microwaves and baby monitors helps. Finally, say “Alexa, check for software updates.” If one is waiting, the Echo installs it on its own.