Sounds like you either have a loose connection or an IC that has dry solder balls underneath and banging it makes it temporarily loose connection
open