This is the schematic for this example of PID balance with ping pong ball and IR sensor for distance. Make sure you use the same components. Check all connections, connect the parts and then uplaod the codes and test different PID values.