I am planning to make a robot car with various functions and I want to control 2-3 DC motors with hall sensor, 2-3 servo motors, sensors like these and some electronic components like a speaker, microphone, LED lights, etc. I found some driver like L298N, but it can control only 2 motors. Can I control sensors and electric components directly with raspberry pi? If not, please suggest me a good driver that can control all of these. I am relatively new to all these.
The most capable motor controller board that gets closest to what you require is called the 4tronix Picon Zero.
As you can see from the picture, it allows you to drive 2 DC motors (bottom right) and has outputs (left) that you can configure as servo outputs. There are also a number of inputs (which can take both digital and analog signals.
I reviewed the Picon Zero over on my blog.