Was the problem with the engine or the generator motor? Meaning, will the thing crank and run, but no power? Or the engine wouldn't even start? And if the engine wouldn't start, was it just cranking and cranking (as if it were out of gas), OR did it not even crank (as if someone stole the starter)? The answer to these questions may help us diagnose why the new one isn't starting because that might be why the old one wasn't working (meaning you might have bought a new generator for no reason)
There should be a negative cable running from the generator somewhere to the frame. If there isn't one, make one. It needs to go bolted somewhere on the engine itself. And wherever it goes make sure it's not painted. Wire brush the paint off, bolt it down, and repaint after its hooked up to keep it from rusting. Do NOT bolt it to the bottom tray the generator sits on, as the generator is isolated from it via the rubber mounts it sits on. Mine would bearly crank, if At all, because the original ground cable was a metal strap that was corroded and want making good contact. I went to advance auto and got a 4 gauge battery cable and replaced the strap, and it fired right up.