i have a 96 mercury villager, how can i check if my distributor is working fine? on 1996 Mercury Villager

my check engine light turned on and my scanner tool said it something with my distributor

1 answer 1 comment
what are the codes and what is the car doing?
codes are P1320- Distributor signal interrupt, and P0325- Knock sensor 1 circuit malfunction... i know the distributor triggers the knock sensor thats why i want to test it to see if it working properly... and the car right now seems to be fine but 2 days ago i was going to buy something and the car stalled out on me, at first i thought it was gas but i went to get gas and it still did not want to start, about 2 hours later the car started with no problem and thats when the check engine light came on