They are both called servers but they function differently.
A web server can be either a computer program or a computer running a program. It takes care of accepting HTTP requests from clients, then it will be serving back HTTP responses.
An application server is a software engine that delivers different applications to another device. It is the one you can find in an office or university network that allows everyone in the network to run software off of the same machine.