Linfield came from behind to win and reduce Crusaders' lead at the top of the Premiership table to four points, with the Blues having one game in hand.
David Cushley scored with a stunning left-foot shot from 30 yards which flew past Ross Glendinning after 18 minutes.
Grant McCann levelled with a piledriver into the top corner in the 43rd minute.
The Blues secured victory when Ross Clarke found space and fired a right-foot angled drive past Dwayne Nelson from 18 yards on 74.
The hosts began brightly and striker Peter Thompson shot over the bar in the early stages.
Tony Kane's free-kick set up Cushley for his spectacular opener but Sean Ward could have equalised when his right-foot curling effort flew just wide of the post.
McCann restored parity two minutes before the break with his first goal since signing for the Windsor Park club on just his second appearance.
Shortly after the interval, Andrew Waterworth headed in from McCann's pinpoint cross but the flag was up for offside.
Former Northern Ireland international McCann curled a free-kick onto the roof of the net.
Ballymena substitute Alan Teggart went close when he dragged his attempt wide of the post, but Clarke's well-taken goal proved decisive.
Linfield manager Warren Feeney: "We were disappointed to go a goal down but I'm well chuffed as to how we went about our business for the rest of the game.
"I brought Grant McCann in for his quality and he is well within our wage structure. He wants to play for Linfield, his workrate was fantastic and he scored a great goal.
"We have great character and desire in our changing room. Ross Clarke produced a great piece of skill to grab the winner."