First of all, you can put a scanner in your car to confirm the problem. Most probably, if you have a faulty crankshaft position sensor, then you may get code.  In that case, you can buy a crankshaft position sensor and install it in your car to solve the issue. Also, you can experience the same problem due to the following issues: 01. Spark plug problem. 02. Problem with wiring for the CPS circuit and 03. Engine problems If you still face a problem to fix the case, you can rely on a professional mechanic.