Firstly, you will need to find out where exactly the fault is coming from: get any device that uses same charger as your ipad and check if your charger can charge it. If it charges, then you will need to visit a phone repairer to change your charging port but if it does not charge, then you will need to buy a new charger.