You have a trim SWITCH that is needed for the up ckt to work out of trailer mode and a trim SENSOR on the other side that is associated with the trim gauge ( if you have one ) .
You may be able to resplice the wires if they are in tact ( but its best done in a speciific way )
A detailed problem description on which wires , the condition of those wire , which gauge(s) and what the year, engine and drive are will help the team in offering good advice.