Found and solved the problem, it's because the distributor stop functioning. My friend found out because first we changed the crankshaft sensor but still didn't run, then he tested the spark plug wires but no sparks came out. So he checked the wires that connects into the distributor to see if it had electricity and it does, but electricity didn't leave out through the spark plug wires. So we replaced the distributor with a new distributor rotor, and now it cranks and runs

. My friend also told me that it could have been a short circuit that cause the distributor to stop working.