Harold:
Can I use the udn2998w to drive a simple motor and reverse the polarity going to the motor with one of the input pins on the udn2998w ?
]
Your choice for a UDN2998W, is excellent choice for your project.
The device can be used to drive solenoids, small DC motors, bell
circuits, steppers, ultrasonic generators and the like.
And as you get more experienced, you will find many more
unique applications for the device.
As to the specific implementation take a detailed look at page
4 of the Allegro Data Sheet and study the phase and enable
diagram.
Good luck with your creation.

Alfons:
UDN2998 A fine Allegro product, the very best from USA.
--------------------------------------------------------------------------------