Moeen Ali was out twice and Alex Hales scored just nine on day two of England's final warm-up game against Pakistan A in Sharjah.