If you're talking about the classic Windows pinball game, I'm not 100% certain of every detail, but here's what I know. While you're playing, type "Hidden Test" to activate the cheat options. Once that's enabled:
Click and hold on the screen to control the ball, press H to rack up a whopping 1,000,000,000 points, and pressing R triggers something else. If you want the complete rundown of every function, searching for it on YouTube is your best bet.