Anderson's absence has given uncapped Middlesex seamer Toby Roland-Jones an opening in England's 12-man squad announced on Thursday and he will compete with Nottinghamshire's Jake Ball.
Yorkshire's Ballance, 26, has been included in place of Nick Compton, who is taking a break from the game.
Ballance is back in the test squad for the first time since the winter series in South Africa and could make his first test appearance for England in 12 months.
Cricket Australia bans three players for betting
"He has been in recent form with the bat for Yorkshire in the Championship. Gary is mentally strong and we feel that he will add quality and experience to England’s middle-order," said national selector James Whitaker.
Ben Stokes and Jos Buttler have been left out of the squad along with Lancashire bowler Anderson, who has not recovered after injuring his shoulder against Sri Lanka last month.
"With an injury to James Anderson, there is an opportunity for Toby Roland-Jones who has been a consistent performer in the County Championship over the last few years and deserves his chance," said Whitaker.
"Building on the success of the Test series win against Sri Lanka last month, we have maintained our objective of retaining a balanced squad," he added.
No changes to New Zealand's tour of Zimbabwe despite unrest
England won the Sri Lanka test series 2-0.
The Lord's test against Pakistan begins next Thursday.
Squad: Alastair Cook (captain), Moeen Ali, Jonathan Bairstow, Gary Ballance, Jake Ball, Stuart Broad, Steven Finn, Alex Hales, Joe Root, Toby Roland-Jones, James Vince, Chris Woakes
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ