If your charger works with other devices but not your iPhone, the problem might be your iPhone's charging port. Try cleaning it or get it checked by professionals to get it back to working order.