What's wrong with my 1998 Honda CR-V?

Starts first time but when I drive and go to the store and turn it off. When I come back out from the store it won't start. Tries too just doesn't turn over. After sitting and trying for about 10 mins it will then start. I changed the spark plugs. What could this be. I was told by a friend it could be the spark plug wires or fuel pump what do you think it could be.

It needs a new pgmfi main relay.

Spend some money and make an appointment with a mechanic. Drive it to the shop and have the mechanic test for spark and fuel pressure with the hot engine.
If you do not have the funds to see a mechanic, do the same tests when the engine is hot. Youtube has a lot of videos to check for spark and fuel. You can rent a fuel pressure tester at a parts store.