@HailzJT-93First, plants showing up as dirt piles is normal if they are out of season.
If the plants grew normally at one point but reverted to dirt piles and are IN season, then that's a game bug that's been around for quite a long time. It's very random. It almost never happens to me or else I would have written a mod to fix it.
The only way to fix the plants reverted to dirt piles is to cheat them back to normal. I think you need testingcheats on.
Shift-click on a plant and I think it's under "growth stage". Just set it to blossoming and they'll be back to normal... at least until the bug occurs again.