Humming, Crackling, or No Sound at all? Those problems are always the most common issue on electric guitar and bass.
They may be due to some bad quality, dusty and oxidized, or just broken components. Sometimes even caused by poor soldering or wrong wiring.
Also, interference (humming or buzzing) is everywhere these days with screens, lights, dirty power supplies, and more. A properly shielded guitar will virtually eliminate most interference.