First, did the problem you now have start only after the controller was "sent back and reprogrammed" (sent to where? reprogrammed from what to what?)?
Or did this problem exist just as it is before that happened, and was it the reason for sending it?
If it existed before:
If the problem is the same regardless of whether the battery has been recently charged or not, it could be a probelm in the battery (which would require opening it up to begin diagnosing by testing voltages between the pairs of wires at the largest multi-wire connector on the BMS board), or it could be a simple connection problem in the system cabling.
Wires and connectors are *the* most common problem in any electrical system, and most of the problems on ebikes are loose connectors, broken or damaged wires, etc.
So the first thing I'd check is unplugging, examining in direct sunlight, and replugging every connector, especially the throttle and motor connectors.
Sometimes water intrusion in the controller itself, or the motor or display, connectors, etc., may cause the problem instead. Often this is evident during the connector inspection in direct sunlight, but sometimes it is not visible (inside the components).
The battery itself may be a separate problem; complete loss of power on the system is usually caused by the battery's BMS shutting off to protect against overdischarge of low-capability/capacity cells.