How to make a racing game like NFS ?

Are you seriously asking how to make an entire game?
Start with the vehicle template that comes with the engine and work your way up.

Prototype in blueprints, move performance intensive stuff to C++. If you’re working solo but your coding skill are strong, you’ll have a simple but complete racer in 2-3 years.