Go back to the electrical work, check wiring and connectors, grounds. Check or replace the trans range sensor switch, located on the top of the trans, that's what I would do if faced with that problem. Might want to scan obd codes too. Or try to find a competent trans shop.