Can you clarify? It only charges in certain positions on the wireless charger or with the cable?
Wireless charging can be impacted by cases and sometimes they do have to be set in just the right position to work on certain chargers. Try taking your case off if you have one on and see if it makes a difference.
Speaking from experience, 9/10 if an iPhone is have trouble charging via a cable, the port is filled with debris. I know you said you cleaned it but give it another go. Hit it with some compressed air, swipe a brush through it, or even pick some debris out with a toothpick or something soft.
Use a known good charger to test after cleaning.
Check this article for more information: If your iPhone or iPod touch won't charge - Apple Support